qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] hmp: fix memory leak at hmp_info_block_jobs()
@ 2014-09-16 13:36 arei.gonglei
  2014-09-16 15:11 ` Markus Armbruster
  2014-09-17 13:02 ` Stefan Hajnoczi
  0 siblings, 2 replies; 4+ messages in thread
From: arei.gonglei @ 2014-09-16 13:36 UTC (permalink / raw)
  To: qemu-devel; +Cc: kwolf, weidong.huang, armbru, lcapitulino, Gonglei, stefanha

From: Gonglei <arei.gonglei@huawei.com>

Signed-off-by: Gonglei <arei.gonglei@huawei.com>
---
 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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-09-17 13:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-16 13:36 [Qemu-devel] [PATCH] hmp: fix memory leak at hmp_info_block_jobs() arei.gonglei
2014-09-16 15:11 ` Markus Armbruster
2014-09-17  1:04   ` Gonglei (Arei)
2014-09-17 13:02 ` Stefan Hajnoczi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).