]> git.baikalelectronics.ru Git - kernel.git/commit
perf inject: Fix missing free in copy_kcore_dir()
authorAdrian Hunter <adrian.hunter@intel.com>
Mon, 20 Jun 2022 10:39:04 +0000 (13:39 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sun, 26 Jun 2022 15:32:15 +0000 (12:32 -0300)
commitdabec589521d1097fe7276bb40923e9d4297c003
tree126e4e77ce14b5abfd116ce7af13c25f25e79919
parent12de8861954101aa9154a1041e1a6f07eef3d182
perf inject: Fix missing free in copy_kcore_dir()

Free string allocated by asprintf().

Fixes: 08c0fdd4a5b9da39 ("perf inject: Keep a copy of kcore_dir")
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20220620103904.7960-1-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-inject.c