[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



---
 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]