storage: plug memory leak on error

Detected by Coverity.  Present since commit 82c1740.

* src/storage/storage_backend_logical.c
(virStorageBackendLogicalMakeVol): Fix leak.
This commit is contained in:
Eric Blake 2011-10-13 15:06:01 -06:00
parent f1409fa7c6
commit 8f8258e1df

View File

@ -236,6 +236,7 @@ virStorageBackendLogicalMakeVol(virStoragePoolObjPtr pool,
if (virStrToLong_ull(offset_str, NULL, 10, &offset) < 0) {
virStorageReportError(VIR_ERR_INTERNAL_ERROR, "%s",
_("malformed volume extent offset value"));
VIR_FREE(offset_str);
goto cleanup;
}