Re: [Qemu-devel] [PATCH v2] rbd: fix leak in qemu_rbd_open failure paths

2011-09-04 Thread Sage Weil
On Sun, 4 Sep 2011, Stefan Hajnoczi wrote: > On Sat, Sep 3, 2011 at 11:04 PM, Sage Weil wrote: > > +failed_shutdown: > >     rados_shutdown(s->cluster); > > +    qemu_free(s->snap); > > Sorry for being a pain here. This patch is against an old qemu.git > tree. All memory allocation is now using

Re: [Qemu-devel] [PATCH v2] rbd: fix leak in qemu_rbd_open failure paths

2011-09-04 Thread Stefan Hajnoczi
On Sat, Sep 3, 2011 at 11:04 PM, Sage Weil wrote: > +failed_shutdown: >     rados_shutdown(s->cluster); > +    qemu_free(s->snap); Sorry for being a pain here. This patch is against an old qemu.git tree. All memory allocation is now using glib's g_malloc()/g_free(). Stefan