diff options
author | Riccardo Mancini <[email protected]> | 2021-07-15 18:07:11 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2021-07-15 17:27:52 -0300 |
commit | 581e295a0f6b5c2931d280259fbbfff56959faa9 (patch) | |
tree | 11a713b8fb827801f70177d14da262341cbcbe3d /tools/perf/scripts/python/export-to-postgresql.py | |
parent | dccfca926c351ba0893af4c8b481477bdb2881a4 (diff) |
perf dso: Fix memory leak in dso__new_map()
ASan reports a memory leak when running:
# perf test "65: maps__merge_in".
The causes of the leaks are two, this patch addresses only the first
one, which is related to dso__new_map().
The bug is that dso__new_map() creates a new dso but never decreases the
refcount it gets from creating it.
This patch adds the missing dso__put().
Signed-off-by: Riccardo Mancini <[email protected]>
Fixes: d3a7c489c7fd2463 ("perf tools: Reference count struct dso")
Cc: Ian Rogers <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lore.kernel.org/lkml/60bfe0cd06e89e2ca33646eb8468d7f5de2ee597.1626343282.git.rickyman7@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions