mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 07:05:28 +00:00
qemu: fix memory leak in blockinfo
Coverity flagged commit 0282ca45
as introducing a memory leak;
in all my refactoring to make capacity probing conditional on
whether the image is non-raw, I missed deleting the unconditional
probe.
* src/qemu/qemu_driver.c (qemuStorageLimitsRefresh): Drop
redundant assignment.
Signed-off-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
952f8a7394
commit
af5c3a1015
@ -11116,9 +11116,6 @@ qemuStorageLimitsRefresh(virQEMUDriverPtr driver,
|
||||
buf, len)) < 0)
|
||||
goto cleanup;
|
||||
}
|
||||
if (!(meta = virStorageFileGetMetadataFromBuf(src->path, buf, len,
|
||||
format, NULL)))
|
||||
goto cleanup;
|
||||
if (format == VIR_STORAGE_FILE_RAW)
|
||||
src->capacity = src->physical;
|
||||
else if ((meta = virStorageFileGetMetadataFromBuf(src->path, buf,
|
||||
|
Loading…
Reference in New Issue
Block a user