Re: [Qemu-devel] [PATCH] rbd: avoid qemu_rbd_snap_list() memory leak when no snapshots

2013-09-25 Thread Stefan Hajnoczi
On Wed, Sep 25, 2013 at 10:06:11AM +0200, Kevin Wolf wrote: > Am 25.09.2013 um 02:28 hat Michael Roth geschrieben: > > Quoting Stefan Hajnoczi (2013-08-14 07:13:52) > > > When there are no snapshots qemu_rbd_snap_list() returns 0 and the > > > snapshot table pointer is NULL. Don't forget to free t

Re: [Qemu-devel] [PATCH] rbd: avoid qemu_rbd_snap_list() memory leak when no snapshots

2013-09-25 Thread Kevin Wolf
Am 25.09.2013 um 02:28 hat Michael Roth geschrieben: > Quoting Stefan Hajnoczi (2013-08-14 07:13:52) > > 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(). > > >

Re: [Qemu-devel] [PATCH] rbd: avoid qemu_rbd_snap_list() memory leak when no snapshots

2013-09-24 Thread Michael Roth
Quoting Stefan Hajnoczi (2013-08-14 07:13:52) > 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(). > > Cc: qemu-sta...@nongnu.org > Signed-off-by: Stefan Hajnoczi P

[Qemu-devel] [PATCH] rbd: avoid qemu_rbd_snap_list() memory leak when no snapshots

2013-08-14 Thread Stefan Hajnoczi
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(). Cc: qemu-sta...@nongnu.org Signed-off-by: Stefan Hajnoczi --- block/rbd.c | 2 +- 1 file changed, 1 insertion(+), 1 d