mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +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:
|
||||
VIR_FREE(regex);
|
||||
VIR_FREE(reg);
|
||||
regfree(reg);
|
||||
VIR_FREE(vars);
|
||||
if (is_new_vol && (ret == -1))
|
||||
virStorageVolDefFree(vol);
|
||||
|
Loading…
Reference in New Issue
Block a user