summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2025-03-12 17:31:39 -0300
committerNamhyung Kim <namhyung@kernel.org>2025-03-18 16:08:29 -0700
commit3de5a2bf5b4847f7a59a184568f969f8fe05d57f (patch)
treeecf453076138fd54ab718f30be7a5aa52716fcfa /tools/perf/scripts/python/export-to-sqlite.py
parenta570da214819fa2bd26b8edcaf857867f55e60c5 (diff)
perf python: Decrement the refcount of just created event on failure
To avoid a leak if we have the python object but then something happens and we need to return the operation, decrement the offset of the newly created object. Fixes: 377f698db12150a1 ("perf python: Add struct evsel into struct pyrf_event") Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Reviewed-by: Ian Rogers <irogers@google.com> Link: https://lore.kernel.org/r/20250312203141.285263-5-acme@kernel.org Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions