mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-23 03:42:19 +00:00
storage: fix leak in virStorageBackendLogicalMakeVol
Use regfree instead of VIR_FREE.
This commit is contained in:
parent
1e8b4b5810
commit
afc4631b63
@ -264,7 +264,7 @@ virStorageBackendLogicalMakeVol(virStoragePoolObjPtr pool,
|
|||||||
|
|
||||||
cleanup:
|
cleanup:
|
||||||
VIR_FREE(regex);
|
VIR_FREE(regex);
|
||||||
VIR_FREE(reg);
|
regfree(reg);
|
||||||
VIR_FREE(vars);
|
VIR_FREE(vars);
|
||||||
if (is_new_vol && (ret == -1))
|
if (is_new_vol && (ret == -1))
|
||||||
virStorageVolDefFree(vol);
|
virStorageVolDefFree(vol);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user