perf: Fix memory leak in the profiler
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 5 May 2016 16:14:24 +0000 (12:14 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 16 Jun 2016 15:48:35 +0000 (11:48 -0400)
qclose() just closes it.  qfree() does a qclose() and a kfree().

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/src/profiler.c

index 8c1ddc1..9926407 100644 (file)
@@ -257,7 +257,7 @@ static void free_cpu_buffers(void)
        profiler_percpu_ctx = NULL;
 
        if (profiler_queue) {
-               qclose(profiler_queue);
+               qfree(profiler_queue);
                profiler_queue = NULL;
        }
 }