aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py
diff options
context:
space:
mode:
authorLi Nan <[email protected]>2023-12-08 15:46:29 +0800
committerRichard Weinberger <[email protected]>2024-01-06 23:52:51 +0100
commitadbf4c4954e33e623897058a617c583d65a177f6 (patch)
tree93cb40f4ea85601e4b8246bd19f7d51b20f5c13e /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py
parentac8e9f64f51b6e61e7181a44525e1d4cd1cb338a (diff)
ubi: block: fix memleak in ubiblock_create()
If idr_alloc() fails, dev->gd will be put after goto out_cleanup_disk in ubiblock_create(), but dev->gd has not been assigned yet at this time, and 'gd' will not be put anymore. Fix it by putting 'gd' directly. Signed-off-by: Li Nan <[email protected]> Reviewed-by: Zhihao Cheng <[email protected]> Signed-off-by: Richard Weinberger <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions