diff options
Diffstat (limited to 'tools/perf/util/svghelper.c')
-rw-r--r-- | tools/perf/util/svghelper.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/perf/util/svghelper.c b/tools/perf/util/svghelper.c index 56a84f2cc46d..43262b83c541 100644 --- a/tools/perf/util/svghelper.c +++ b/tools/perf/util/svghelper.c | |||
@@ -21,6 +21,7 @@ | |||
21 | 21 | ||
22 | #include "perf.h" | 22 | #include "perf.h" |
23 | #include "svghelper.h" | 23 | #include "svghelper.h" |
24 | #include "util.h" | ||
24 | #include "cpumap.h" | 25 | #include "cpumap.h" |
25 | 26 | ||
26 | static u64 first_time, last_time; | 27 | static u64 first_time, last_time; |
@@ -708,8 +709,8 @@ int svg_build_topology_map(char *sib_core, int sib_core_nr, | |||
708 | return 0; | 709 | return 0; |
709 | 710 | ||
710 | exit: | 711 | exit: |
711 | free(t.sib_core); | 712 | zfree(&t.sib_core); |
712 | free(t.sib_thr); | 713 | zfree(&t.sib_thr); |
713 | 714 | ||
714 | return -1; | 715 | return -1; |
715 | } | 716 | } |