]> Pileus Git - ~andy/linux/blobdiff - tools/perf/ui/gtk/util.c
perf tools: Introduce zfree
[~andy/linux] / tools / perf / ui / gtk / util.c
index 696c1fbe42482db03b4fb460b488860435a4edf5..52e7fc48af9f488088785b8e216e05f6b22546fc 100644 (file)
@@ -23,8 +23,7 @@ int perf_gtk__deactivate_context(struct perf_gtk_context **ctx)
        if (!perf_gtk__is_active_context(*ctx))
                return -1;
 
-       free(*ctx);
-       *ctx = NULL;
+       zfree(ctx);
        return 0;
 }