diff options
| author | Kevin Wolf <kwolf@redhat.com> | 2018-08-13 15:23:49 +0200 |
|---|---|---|
| committer | Kevin Wolf <kwolf@redhat.com> | 2018-08-15 12:50:39 +0200 |
| commit | f62492bb8d1ea7f7e156ffbdf411de46107072c5 (patch) | |
| tree | 7d839f1f9ea41aa5fa7e661339057da0064d9d82 /hw/usb/dev-storage.c | |
| parent | 38441756b70eec5807b5f60dad11a93a91199866 (diff) | |
| download | focaccia-qemu-f62492bb8d1ea7f7e156ffbdf411de46107072c5.tar.gz focaccia-qemu-f62492bb8d1ea7f7e156ffbdf411de46107072c5.zip | |
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>
Diffstat (limited to 'hw/usb/dev-storage.c')
0 files changed, 0 insertions, 0 deletions