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

[libvirt] [PATCH] Fix qemudDomainShutdown() memory leak



qemudDomainShutdown() currently doesn't free the returned reply from
qemudMonitorCommand().

Signed-off-by: Eduardo Habkost <ehabkost redhat com>
---
 src/qemu_driver.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/qemu_driver.c b/src/qemu_driver.c
index 806608d..a88cb75 100644
--- a/src/qemu_driver.c
+++ b/src/qemu_driver.c
@@ -2176,6 +2176,7 @@ static int qemudDomainShutdown(virDomainPtr dom) {
                          "%s", _("shutdown operation failed"));
         return -1;
     }
+    VIR_FREE(info);
     return 0;
 
 }
-- 
1.5.5.GIT


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