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); }