aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/python.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/python.c')
-rw-r--r--tools/perf/util/python.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/python.c b/tools/perf/util/python.c
index d906d0ad5d40..626422eda727 100644
--- a/tools/perf/util/python.c
+++ b/tools/perf/util/python.c
@@ -384,7 +384,7 @@ static int pyrf_cpu_map__init(struct pyrf_cpu_map *pcpus,
384 384
385static void pyrf_cpu_map__delete(struct pyrf_cpu_map *pcpus) 385static void pyrf_cpu_map__delete(struct pyrf_cpu_map *pcpus)
386{ 386{
387 cpu_map__delete(pcpus->cpus); 387 cpu_map__put(pcpus->cpus);
388 pcpus->ob_type->tp_free((PyObject*)pcpus); 388 pcpus->ob_type->tp_free((PyObject*)pcpus);
389} 389}
390 390
@@ -453,7 +453,7 @@ static int pyrf_thread_map__init(struct pyrf_thread_map *pthreads,
453 453
454static void pyrf_thread_map__delete(struct pyrf_thread_map *pthreads) 454static void pyrf_thread_map__delete(struct pyrf_thread_map *pthreads)
455{ 455{
456 thread_map__delete(pthreads->threads); 456 thread_map__put(pthreads->threads);
457 pthreads->ob_type->tp_free((PyObject*)pthreads); 457 pthreads->ob_type->tp_free((PyObject*)pthreads);
458} 458}
459 459