aboutsummaryrefslogtreecommitdiff
path: root/hmp.c
diff options
context:
space:
mode:
authorGonglei <arei.gonglei@huawei.com>2014-09-16 21:36:55 +0800
committerStefan Hajnoczi <stefanha@redhat.com>2014-09-22 11:39:31 +0100
commit93bb1315250dd010e65dc067af103cbaf0de03ae (patch)
tree0c652ac83bc845fe43107e73b13d3814700f93e8 /hmp.c
parent407ba0844d90a344e5ed012129e6e40e091bf48b (diff)
hmp: fix memory leak at hmp_info_block_jobs()
Signed-off-by: Gonglei <arei.gonglei@huawei.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Message-id: 1410874615-14292-1-git-send-email-arei.gonglei@huawei.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'hmp.c')
-rw-r--r--hmp.c2
1 files changed, 2 insertions, 0 deletions
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)