summary refs log tree commit diff stats
path: root/scripts
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2013-09-25 16:00:48 +0200
committerKevin Wolf <kwolf@redhat.com>2013-09-25 16:22:00 +0200
commit9e6337d0818650362149b734d53edf9489f3acaa (patch)
tree2f19e43d3aa9ef42562d82ad04ad4d86be33781c /scripts
parent5726d872f3c7a78a6c17ff5a6e47e01cff0a5e55 (diff)
downloadfocaccia-qemu-9e6337d0818650362149b734d53edf9489f3acaa.tar.gz
focaccia-qemu-9e6337d0818650362149b734d53edf9489f3acaa.zip
rbd: avoid qemu_rbd_snap_list() memory leaks
When there are no snapshots qemu_rbd_snap_list() returns 0 and the
snapshot table pointer is NULL.  Don't forget to free the snaps buffer
we allocated for librbd rbd_snap_list().

When the function succeeds don't forget to free the snaps buffer after
calling rbd_snap_list_end().

Cc: qemu-stable@nongnu.org
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions