]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Fix memory leak on metadata fetching
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 28 Jul 2011 13:42:57 +0000 (15:42 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 28 Jul 2011 14:01:39 +0000 (16:01 +0200)
commit09d7eba99d95b887bd284b3418ea21438f6af277
tree3e407b92bf82f8edd06d4366d826b02d8d32860f
parentc6a4c375fb9aa37677eea4ab50667b1d97d69437
qemu: Fix memory leak on metadata fetching

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