]> 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)
commitded7ed6dd4fa449999b09e77be23eb56b0373ba1
tree126e4e77ce14b5abfd116ce7af13c25f25e79919
parent2ee6cc074b06df644cd5e7cfc9c8f9588655d95d
perf inject: Fix missing free in copy_kcore_dir()

Free string allocated by asprintf().

Fixes: e4a4c79bb999eec7 ("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