Searched hist:"9 e6337d0" (Results 1 – 1 of 1) sorted by relevance
/qemu/block/ |
H A D | rbd.c | 9e6337d0 Wed Sep 25 14:00:48 GMT 2013 Stefan Hajnoczi <stefanha@redhat.com> 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>
|