]> Git Repo - linux.git/blobdiff - tools/perf/util/svghelper.c
perf tools: Use zfree to help detect use after free bugs
[linux.git] / tools / perf / util / svghelper.c
index 56a84f2cc46d520f2ae68954c8b1d69bef697cc7..43262b83c5411894f3dff3244782b6bd8bfe580d 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "perf.h"
 #include "svghelper.h"
+#include "util.h"
 #include "cpumap.h"
 
 static u64 first_time, last_time;
@@ -708,8 +709,8 @@ int svg_build_topology_map(char *sib_core, int sib_core_nr,
        return 0;
 
 exit:
-       free(t.sib_core);
-       free(t.sib_thr);
+       zfree(&t.sib_core);
+       zfree(&t.sib_thr);
 
        return -1;
 }
This page took 0.023169 seconds and 4 git commands to generate.