perf tools: Use zfree() where applicable
[linux-2.6-microblaze.git] / tools / perf / util / thread_map.c
index c291874..5b3511f 100644 (file)
@@ -480,7 +480,7 @@ int thread_map__remove(struct thread_map *threads, int idx)
        /*
         * Free the 'idx' item and shift the rest up.
         */
-       free(threads->map[idx].comm);
+       zfree(&threads->map[idx].comm);
 
        for (i = idx; i < threads->nr - 1; i++)
                threads->map[i] = threads->map[i + 1];