mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 07:17:44 +00:00
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:
parent
f1409fa7c6
commit
8f8258e1df
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user