]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
perf tools: Fix a memory leak in __open_dso()
authorNamhyung Kim <namhyung@kernel.org>
Thu, 8 Jun 2017 07:31:02 +0000 (16:31 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 8 Jun 2017 18:38:47 +0000 (15:38 -0300)
commit44ad6b8852529eb39066edbedc027a6901da6803
treeb21fa536818dd709a241f83820a5c8b566d692ca
parent3619ef76b37d4803bc9daee9d03d82c8526db378
perf tools: Fix a memory leak in __open_dso()

The 'name' variable should be freed on the error path.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Wang Nan <wangnan0@huawei.com>
Cc: kernel-team@lge.com
Link: http://lkml.kernel.org/r/20170608073109.30699-3-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/dso.c