From 6dc7fc6aee05270dc96ec9975a283ca0e0ba5dfe Mon Sep 17 00:00:00 2001 From: Dustin Dettmer Date: Sat, 9 Oct 2021 09:29:16 -0700 Subject: [PATCH] Fix memory leak abort in debug mode --- common/daemon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/common/daemon.c b/common/daemon.c index 4d703ff8d..83b0ff12a 100644 --- a/common/daemon.c +++ b/common/daemon.c @@ -176,6 +176,7 @@ void daemon_maybe_debug(char *argv[]) * https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425 */ if (system(cmd)) ; + tal_free(cmd); /* Continue in the debugger. */ kill(getpid(), SIGSTOP); }