]> Git Repo - linux.git/blobdiff - tools/perf/builtin-diff.c
perf tools: Use zfree to help detect use after free bugs
[linux.git] / tools / perf / builtin-diff.c
index 2a85cc9a2d097828e4b9aff3a958a2021d402b16..e6a0844bc2f0e0f50ee3cad7d1c0edafb7c03aa7 100644 (file)
@@ -654,7 +654,7 @@ static void data__free(struct data__file *d)
        for (col = 0; col < PERF_HPP_DIFF__MAX_INDEX; col++) {
                struct diff_hpp_fmt *fmt = &d->fmt[col];
 
-               free(fmt->header);
+               zfree(&fmt->header);
        }
 }
 
This page took 0.031025 seconds and 4 git commands to generate.