Searched hist:"567 dcb31" (Results 1 – 1 of 1) sorted by relevance
/qemu/block/ |
H A D | qapi.c | f62492bb Mon Aug 13 13:23:49 GMT 2018 Kevin Wolf <kwolf@redhat.com> block/qapi: Fix memory leak in qmp_query_blockstats()
For BlockBackends that are skipped in query-blockstats, we would leak info since commit 567dcb31. Allocate info only later to avoid the memory leak.
Fixes: CID 1394727 Cc: qemu-stable@nongnu.org Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Alberto Garcia <berto@igalia.com> 567dcb31 Fri Jul 27 14:09:25 GMT 2018 Kevin Wolf <kwolf@redhat.com> block/qapi: Include anonymous BBs in query-blockstats
Consistent with query-block, query-blockstats should not only include named BlockBackends, but also those that are anonymous, but belong to a device model.
Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
|