From 93bb1315250dd010e65dc067af103cbaf0de03ae Mon Sep 17 00:00:00 2001 From: Gonglei Date: Tue, 16 Sep 2014 21:36:55 +0800 Subject: [PATCH] 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 --- hmp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hmp.c b/hmp.c index 40a90dae70..31fb6a15ca 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)