Skip to content

Commit

Permalink
hmp: fix memory leak at hmp_info_block_jobs()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
gongleiarei authored and stefanhaRH committed Sep 22, 2014
1 parent 407ba08 commit 93bb131
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hmp.c
Expand Up @@ -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)
Expand Down

0 comments on commit 93bb131

Please sign in to comment.