From: Axel Wagner Date: Wed, 26 Jan 2011 00:24:54 +0000 (+0100) Subject: Bugfix: free() command-string, after it is not needed anymore X-Git-Tag: 4.0.1~7^2~22 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9c7db9399339ab1ed6cc3472ab21f45338ff90f4;p=i3%2Fi3 Bugfix: free() command-string, after it is not needed anymore --- diff --git a/i3bar/src/main.c b/i3bar/src/main.c index c0e07a22..4ac268d6 100644 --- a/i3bar/src/main.c +++ b/i3bar/src/main.c @@ -227,6 +227,7 @@ int main(int argc, char **argv) { /* 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 */ start_child(command); + FREE(command); /* 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