Re: [libvirt] [PATCH 1/5] phyp: Remove stack allocating a 4kb volume key and fix related memory leaks

2011-04-14 Thread Matthias Bolte
2011/4/11 Daniel Veillard : > On Sat, Apr 09, 2011 at 11:59:07AM +0200, Matthias Bolte wrote: >> Don't pre-allocate 4kb per key, make phypVolumeGetKey allocate the memory. >> >> Make phypBuildVolume return the volume key instead of using pre-allocated >> memory to store it. >> >> Also fix a memory

Re: [libvirt] [PATCH 1/5] phyp: Remove stack allocating a 4kb volume key and fix related memory leaks

2011-04-10 Thread Daniel Veillard
On Sat, Apr 09, 2011 at 11:59:07AM +0200, Matthias Bolte wrote: > Don't pre-allocate 4kb per key, make phypVolumeGetKey allocate the memory. > > Make phypBuildVolume return the volume key instead of using pre-allocated > memory to store it. > > Also fix a memory leak in phypVolumeLookupByName whe

[libvirt] [PATCH 1/5] phyp: Remove stack allocating a 4kb volume key and fix related memory leaks

2011-04-09 Thread Matthias Bolte
Don't pre-allocate 4kb per key, make phypVolumeGetKey allocate the memory. Make phypBuildVolume return the volume key instead of using pre-allocated memory to store it. Also fix a memory leak in phypVolumeLookupByName when phypVolumeGetKey fails. Fix another memory leak in phypVolumeLookupByPath