aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorYan Zhen <[email protected]>2024-08-22 10:27:04 +0800
committerVlastimil Babka <[email protected]>2024-08-27 16:57:35 +0200
commit3beb2fb68184fda063cdd3cdd3bbe52c5cae56bb (patch)
tree8b621c004c218142cff9fb02e25fd8912608dfcf /tools/perf/util/scripting-engines/trace-event-python.c
parent1941b31482a61a7bd75300d1905938e7e48c3d25 (diff)
mm, slab: use kmem_cache_free() to free from kmem_buckets_cache
In kmem_buckets_create(), the kmem_buckets object is allocated by kmem_cache_alloc() from kmem_buckets_cache, but in the failure case, it's freed by kfree(). This is not wrong, but using kmem_cache_free() is the more common pattern, so use it. Signed-off-by: Yan Zhen <[email protected]> Reviewed-by: Christoph Lameter <[email protected]> Signed-off-by: Vlastimil Babka <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions