Fix memory leak abort in debug mode

This commit is contained in:
Dustin Dettmer 2021-10-09 09:29:16 -07:00 committed by Christian Decker
parent 3aa31d7cfd
commit 6dc7fc6aee

View file

@ -176,6 +176,7 @@ void daemon_maybe_debug(char *argv[])
* https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425 */ * https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425 */
if (system(cmd)) if (system(cmd))
; ;
tal_free(cmd);
/* Continue in the debugger. */ /* Continue in the debugger. */
kill(getpid(), SIGSTOP); kill(getpid(), SIGSTOP);
} }