[libvirt] [PATCH 3/5] storage: Need to add virCommandFree()

John Ferlan jferlan at redhat.com
Wed Jan 23 22:04:46 UTC 2013


---
 src/storage/storage_backend_fs.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/storage/storage_backend_fs.c b/src/storage/storage_backend_fs.c
index 21589a6..a582804 100644
--- a/src/storage/storage_backend_fs.c
+++ b/src/storage/storage_backend_fs.c
@@ -648,6 +648,8 @@ virStorageBackendExecuteMKFS(const char *device,
                              format, device);
         ret = -1;
     }
+
+    virCommandFree(cmd);
     return ret;
 }
 #else /* #ifdef MKFS */
-- 
1.7.11.7




More information about the libvir-list mailing list