summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2025-03-12 17:31:39 -0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-04-10 14:44:33 +0200
commit37f4bd24acbb531c4006bc462441d1a18cee03bf (patch)
treea29aebb7253ea15739cce08d68a70159d9eaff29 /sound
parent67f9b6b5ce0037ffdf71388cb867b485a8eab17e (diff)
downloadlinux-37f4bd24acbb531c4006bc462441d1a18cee03bf.tar.gz
linux-37f4bd24acbb531c4006bc462441d1a18cee03bf.tar.bz2
linux-37f4bd24acbb531c4006bc462441d1a18cee03bf.zip
perf python: Decrement the refcount of just created event on failure
[ Upstream commit 3de5a2bf5b4847f7a59a184568f969f8fe05d57f ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions