aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorWenwen Wang <[email protected]>2019-08-11 12:23:22 -0500
committerJens Axboe <[email protected]>2019-08-12 08:18:37 -0600
commitae78ca3cf3d9e9f914bfcd0bc5c389ff18b9c2e0 (patch)
tree0b24e12d4a0d721511fc5ef63ad16f627c0954cc /tools/perf/util/trace-event-scripting.c
parente26cc08265dda37d2acc8394604f220ef412299d (diff)
xen/blkback: fix memory leaks
In read_per_ring_refs(), after 'req' and related memory regions are allocated, xen_blkif_map() is invoked to map the shared frame, irq, and etc. However, if this mapping process fails, no cleanup is performed, leading to memory leaks. To fix this issue, invoke the cleanup before returning the error. Acked-by: Roger Pau MonnĂ© <[email protected]> Reviewed-by: Boris Ostrovsky <[email protected]> Signed-off-by: Wenwen Wang <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions