mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-04 03:03:51 +01:00
Fix memory leak abort in debug mode
This commit is contained in:
parent
3aa31d7cfd
commit
6dc7fc6aee
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue