Skip to content

Commit e0ca670

Browse files
Manciukicgregkh
authored andcommitted
perf symbol-elf: Fix memory leak by freeing sdt_note.args
commit 69c9ffe upstream. Reported by ASan. Signed-off-by: Riccardo Mancini <[email protected]> Acked-by: Ian Rogers <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Fabian Hemmer <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Remi Bernon <[email protected]> Cc: Jiri Slaby <[email protected]> Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]> Signed-off-by: Hanjun Guo <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 0d8e39b commit e0ca670

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/perf/util/symbol-elf.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2360,6 +2360,7 @@ int cleanup_sdt_note_list(struct list_head *sdt_notes)
23602360

23612361
list_for_each_entry_safe(pos, tmp, sdt_notes, note_list) {
23622362
list_del_init(&pos->note_list);
2363+
zfree(&pos->args);
23632364
zfree(&pos->name);
23642365
zfree(&pos->provider);
23652366
free(pos);

0 commit comments

Comments
 (0)