aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2013-09-25 16:00:48 +0200
committerMichael Roth <mdroth@linux.vnet.ibm.com>2013-09-30 22:32:04 -0500
commitfc06b430942e84a2a69e2a80a6d5b376a8064020 (patch)
tree3ee918808e898e556966e87a6e9f65c4bcfee72f /configure
parent6bbb9d8100c90deb4843bfa3cf36e75b843c495b (diff)
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> (cherry picked from commit 9e6337d0818650362149b734d53edf9489f3acaa) Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'configure')
0 files changed, 0 insertions, 0 deletions