]> Git Repo - linux.git/blobdiff - tools/perf/util/comm.c
perf tools: Use zfree to help detect use after free bugs
[linux.git] / tools / perf / util / comm.c
index ee0df0e24cdbd4f37e33aaa088c3b1465941d4b1..67d1e404c0cb732d29394eebab3a2125035d3447 100644 (file)
@@ -21,7 +21,7 @@ static void comm_str__put(struct comm_str *cs)
 {
        if (!--cs->ref) {
                rb_erase(&cs->rb_node, &comm_str_root);
-               free(cs->str);
+               zfree(&cs->str);
                free(cs);
        }
 }
This page took 0.031194 seconds and 4 git commands to generate.