Bugfix: free() command-string, after it is not needed anymore
This commit is contained in:
parent
94ca5c73cc
commit
cc71c77329
@ -227,6 +227,7 @@ int main(int argc, char **argv) {
|
|||||||
/* The name of this function is actually misleading. Even if no -c is specified,
|
/* The name of this function is actually misleading. Even if no -c is specified,
|
||||||
* this function initiates the watchers to listen on stdin and react accordingly */
|
* this function initiates the watchers to listen on stdin and react accordingly */
|
||||||
start_child(command);
|
start_child(command);
|
||||||
|
FREE(command);
|
||||||
|
|
||||||
/* We listen to SIGTERM/QUIT/INT and try to exit cleanly, by stopping the main-loop.
|
/* We listen to SIGTERM/QUIT/INT and try to exit cleanly, by stopping the main-loop.
|
||||||
* We only need those watchers on the stack, so putting them on the stack saves us
|
* We only need those watchers on the stack, so putting them on the stack saves us
|
||||||
|
Loading…
Reference in New Issue
Block a user