diff options
author | Jack Wang <[email protected]> | 2020-12-10 11:18:21 +0100 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2020-12-16 14:55:44 -0700 |
commit | 46067844efdb8275ade705923120fc5391543b53 (patch) | |
tree | 26f7c465e24d29091ae7677e5c533b7dd61b261d /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | e7508d48565060af5d89f10cb83c9359c8ae1310 (diff) |
block/rnbd-clt: Fix possible memleak
In error case, we do not free the memory for blk_symlink_name.
Do it by free the memory in error case, and set to NULL
afterwards.
Also fix the condition in rnbd_clt_remove_dev_symlink.
Fixes: 64e8a6ece1a5 ("block/rnbd-clt: Dynamically alloc buffer for pathname & blk_symlink_name")
Signed-off-by: Jack Wang <[email protected]>
Reviewed-by: Md Haris Iqbal <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions