qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [PATCH] hmp: fix memory leak at hmp_info_block_jobs()


From: arei.gonglei
Subject: [Qemu-devel] [PATCH] hmp: fix memory leak at hmp_info_block_jobs()
Date: Tue, 16 Sep 2014 21:36:55 +0800

From: Gonglei <address@hidden>

Signed-off-by: Gonglei <address@hidden>
---
 hmp.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hmp.c b/hmp.c
index 40a90da..31fb6a1 100644
--- a/hmp.c
+++ b/hmp.c
@@ -679,6 +679,8 @@ void hmp_info_block_jobs(Monitor *mon, const QDict *qdict)
         }
         list = list->next;
     }
+
+    qapi_free_BlockJobInfoList(list);
 }
 
 void hmp_info_tpm(Monitor *mon, const QDict *qdict)
-- 
1.7.12.4





reply via email to

[Prev in Thread] Current Thread [Next in Thread]