From: Pierre-Marc Fournier Date: Wed, 17 Mar 2010 03:30:29 +0000 (-0400) Subject: ustd: move a free in the error handling path X-Git-Tag: v0.4~10 X-Git-Url: https://git.lttng.org/?p=ust.git;a=commitdiff_plain;h=8c017ed33e7d9a0f6e678e7f70922d1dddf413fc ustd: move a free in the error handling path --- diff --git a/ustd/ustd.c b/ustd/ustd.c index ce6f7e2..ac60b3d 100644 --- a/ustd/ustd.c +++ b/ustd/ustd.c @@ -584,10 +584,10 @@ void *consumer_thread(void *arg) consumer_loop(buf); - free((void *)args->bufname); destroy_buffer(buf); end: + free((void *)args->bufname); free(args); return NULL; }