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

[libvirt] [PATCH] Fix memory leak in qemudBuildCommandLine



---
 src/qemu/qemu_conf.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c
index 86172c6..2ee2042 100644
--- a/src/qemu/qemu_conf.c
+++ b/src/qemu/qemu_conf.c
@@ -1893,7 +1893,7 @@ int qemudBuildCommandLine(virConnectPtr conn,
         }
 
         ADD_ARG_LIT("-monitor");
-        ADD_ARG_LIT(virBufferContentAndReset(&buf));
+        ADD_ARG(virBufferContentAndReset(&buf));
     }
 
     if (def->localtime)
-- 
1.6.0.4


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