[libvirt] [PATCH 1/3] Free file header in virStorageFileGetMetadataRecurse

Ján Tomko jtomko at redhat.com
Tue Jun 24 12:45:32 UTC 2014


Introduced by commit 2bdb8b9
---
 src/storage/storage_driver.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/storage/storage_driver.c b/src/storage/storage_driver.c
index 7116185..a5adc63 100644
--- a/src/storage/storage_driver.c
+++ b/src/storage/storage_driver.c
@@ -2906,6 +2906,7 @@ virStorageFileGetMetadataRecurse(virStorageSourcePtr src,
     ret = 0;
 
  cleanup:
+    VIR_FREE(buf);
     virStorageFileDeinit(src);
     virStorageSourceFree(backingStore);
     return ret;
-- 
1.8.5.5




More information about the libvir-list mailing list