[libvirt] [PATCH] qemu: Fix memory leak on metadata fetching

Eric Blake eblake at redhat.com
Thu Jul 28 14:00:43 UTC 2011


On 07/28/2011 07:56 AM, Michal Privoznik wrote:
> As written in virStorageFileGetMetadataFromFD decription, caller
> must free metadata after use. Qemu driver miss this and therefore
> leak metadata which can grow to huge mem leak if somebody query
> for blockInfo a lot.
> ---
>   src/qemu/qemu_driver.c |   14 ++++++++++----
>   1 files changed, 10 insertions(+), 4 deletions(-)

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org




More information about the libvir-list mailing list