]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
perf evsel: Fix 2 memory leaks
authorIan Rogers <irogers@google.com>
Tue, 12 May 2020 23:59:18 +0000 (16:59 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 28 May 2020 13:03:26 +0000 (10:03 -0300)
commit3efc899d9afb3d03604f191a0be9669eabbfc4aa
tree6180e8bfab880b21c75bb980064884d2453ce8ee
parent7fcdccd4237724931d9773d1e3039bfe053a6f52
perf evsel: Fix 2 memory leaks

If allocated, perf_pkg_mask and metric_events need freeing.

Signed-off-by: Ian Rogers <irogers@google.com>
Reviewed-by: Andi Kleen <ak@linux.intel.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lore.kernel.org/lkml/20200512235918.10732-1-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evsel.c