]> Git Repo - linux.git/blobdiff - tools/perf/util/strbuf.c
perf tools: Use zfree to help detect use after free bugs
[linux.git] / tools / perf / util / strbuf.c
index cfa906882e2ceb2ed138fb4fd996474324f4d6c3..4abe23550c73808b16586ac4121bcde244a7fba8 100644 (file)
@@ -28,7 +28,7 @@ void strbuf_init(struct strbuf *sb, ssize_t hint)
 void strbuf_release(struct strbuf *sb)
 {
        if (sb->alloc) {
-               free(sb->buf);
+               zfree(&sb->buf);
                strbuf_init(sb, 0);
        }
 }
This page took 0.032065 seconds and 4 git commands to generate.