We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent befa09b commit b8f7d86Copy full SHA for b8f7d86
tools/perf/util/data.c
@@ -237,7 +237,7 @@ static int open_file(struct perf_data *data)
237
open_file_read(data) : open_file_write(data);
238
239
if (fd < 0) {
240
- free(data->file.path);
+ zfree(&data->file.path);
241
return -1;
242
}
243
@@ -270,7 +270,7 @@ int perf_data__open(struct perf_data *data)
270
271
void perf_data__close(struct perf_data *data)
272
{
273
274
close(data->file.fd);
275
276
0 commit comments