mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
mpath: Fix memory leak in virStorageBackendCreateVols
@map_device, allocated by virAsprintf in virStorageBackendCreateVols, was not freed and leaked. Signed-off-by: Zhipeng Lu <lu.zhipeng@zte.com.cn>
This commit is contained in:
parent
0c02071b56
commit
8c1f25438e
@ -200,6 +200,7 @@ virStorageBackendCreateVols(virStoragePoolObjPtr pool,
|
||||
|
||||
retval = 0;
|
||||
out:
|
||||
VIR_FREE(map_device);
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user