diff options
author | 2023-08-26 23:32:45 +0200 | |
---|---|---|
committer | 2024-02-26 21:43:00 -0800 | |
commit | ef5de1613d7d92bdc975e6beb34bb0fa94f34078 (patch) | |
tree | 0233f62e4f5ca31d1cf13b5e21ba9c6efea429f8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | perf test: Fix spelling mistake "curent" -> "current" (diff) | |
download | wireguard-linux-ef5de1613d7d92bdc975e6beb34bb0fa94f34078.tar.xz wireguard-linux-ef5de1613d7d92bdc975e6beb34bb0fa94f34078.zip |
perf pmu: Fix a potential memory leak in perf_pmu__lookup()
The commit in Fixes has reordered some code, but missed an error handling
path.
'goto err' now, in order to avoid a memory leak in case of error.
Fixes: f63a536f03a2 ("perf pmu: Merge JSON events with sysfs at load time")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Ian Rogers <irogers@google.com>
Cc: kernel-janitors@vger.kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/9538b2b634894c33168dfe9d848d4df31fd4d801.1693085544.git.christophe.jaillet@wanadoo.fr
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions