Re: [Libvir] libvirt.c: avoid a double-free upon do_open failure

2008-02-01 Thread Daniel Veillard
On Wed, Jan 30, 2008 at 02:58:11PM +0100, Jim Meyering wrote: > With a contrived example using more than 20 (the max permitted by > the testing framework) domains, I got a double-free error: [...] > here's one way to fix it: > > diff --git a/src/libvirt.c b/src/libvirt.c > index defadc1..c19565f 1

[Libvir] libvirt.c: avoid a double-free upon do_open failure

2008-01-30 Thread Jim Meyering
With a contrived example using more than 20 (the max permitted by the testing framework) domains, I got a double-free error: ==4821== Invalid free() / delete / delete[] ==4821==at 0x4A0560B: free (vg_replace_malloc.c:233) ==4821==by 0x4167F1: virReleaseConnect (hash.c:717) ==4821==