ustd: move a free in the error handling path
authorPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Wed, 17 Mar 2010 03:30:29 +0000 (23:30 -0400)
committerPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Wed, 17 Mar 2010 03:30:29 +0000 (23:30 -0400)
ustd/ustd.c

index ce6f7e211ea67acffa4cc45c24c6c1dc5b5ecb07..ac60b3d9199414dd61187a65ec9b874d170a9dae 100644 (file)
@@ -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;
 }
This page took 0.023807 seconds and 4 git commands to generate.