]> Git Repo - linux.git/blobdiff - tools/perf/ui/browsers/hists.c
perf tools: Use zfree to help detect use after free bugs
[linux.git] / tools / perf / ui / browsers / hists.c
index 022d1731b80128d594299e7e44eefb8ecf3c91e4..a7045ea6d1d5efee4c105e3720faa9fc4e7d8296 100644 (file)
@@ -1327,7 +1327,7 @@ static int switch_data_file(void)
 
                        abs_path[nr_options] = strdup(path);
                        if (!abs_path[nr_options]) {
-                               free(options[nr_options]);
+                               zfree(&options[nr_options]);
                                ui__warning("Can't search all data files due to memory shortage.\n");
                                fclose(file);
                                break;
This page took 0.025636 seconds and 4 git commands to generate.