From: Gonglei Date: Tue, 16 Sep 2014 13:36:55 +0000 (+0800) Subject: hmp: fix memory leak at hmp_info_block_jobs() X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=93bb1315250dd010e65dc067af103cbaf0de03ae;p=people%2Fliuw%2Flibxenctrl-split%2Fqemu-xen.git hmp: fix memory leak at hmp_info_block_jobs() Signed-off-by: Gonglei Reviewed-by: Markus Armbruster Message-id: 1410874615-14292-1-git-send-email-arei.gonglei@huawei.com Signed-off-by: Stefan Hajnoczi --- diff --git a/hmp.c b/hmp.c index 40a90dae7..31fb6a15c 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)