storage: fix leak in virStorageBackendLogicalMakeVol

Use regfree instead of VIR_FREE.
This commit is contained in:
Ján Tomko 2013-01-07 12:52:43 +01:00
parent 1e8b4b5810
commit afc4631b63

View File

@ -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);