From 89a7f15186363d2e4450501d05f98674f6ba9f9d Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Mon, 24 Apr 2017 18:59:12 +0200 Subject: [PATCH] valgrind: call atexit() handlers to release memory --- src/node.c | 2 +- src/pipe.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/node.c b/src/node.c index 2a88df697..d36cba4ee 100644 --- a/src/node.c +++ b/src/node.c @@ -36,7 +36,7 @@ static void quit(int signal, siginfo_t *sinfo, void *ctx) info(GRN("Goodbye!")); - _exit(EXIT_SUCCESS); + exit(EXIT_SUCCESS); } static void usage() diff --git a/src/pipe.c b/src/pipe.c index b19edecc2..6fcf69e5f 100644 --- a/src/pipe.c +++ b/src/pipe.c @@ -65,7 +65,7 @@ static void quit(int signal, siginfo_t *sinfo, void *ctx) super_node_destroy(&sn); info(GRN("Goodbye!")); - _exit(EXIT_SUCCESS); + exit(EXIT_SUCCESS); } static void usage()