diff options
| author | Ian Rogers <irogers@google.com> | 2026-08-09 00:14:52 -0700 |
|---|---|---|
| committer | Namhyung Kim <namhyung@kernel.org> | 2026-08-09 22:02:41 -0700 |
| commit | cb45ede21d02cc85de18ce6b60a51a7449f4179b (patch) | |
| tree | 6f7c031056f3bf403a5256d752df7c40f53fa2c7 /include/memory | |
| parent | b9514a9a13fc782546df0fae7d5767dadd2094f5 (diff) | |
| download | linux-cb45ede21d02cc85de18ce6b60a51a7449f4179b.tar.gz linux-cb45ede21d02cc85de18ce6b60a51a7449f4179b.zip | |
perf python: Fix count_values memory leak in pyrf_evsel__read
In pyrf_evsel__read, if PyArg_ParseTuple fails, the allocated count_values
is leaked. Move the allocation of count_values after the PyArg_ParseTuple
call to prevent the memory leak.
Fixes: 739621f65702 ("perf python: Add evsel read method")
Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'include/memory')
0 files changed, 0 insertions, 0 deletions
