[libvirt] [PATCH 03/12] storage: Fix a resource leak in storageVolCreateXML

Peter Krempa pkrempa at redhat.com
Tue Oct 13 12:30:58 UTC 2015


On Fri, Oct 09, 2015 at 09:34:02 -0400, John Ferlan wrote:
> Commit id '1b5685da' refactored the code to move buildvoldef inside
> the buildVol conditional; however, the VIR_FREE of the memory was
> left only when 'buildret' failed, thus we're leaking memory.
> 
> Signed-off-by: John Ferlan <jferlan at redhat.com>
> ---
>  src/storage/storage_driver.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 

ACK,

Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20151013/6e5e9141/attachment-0001.sig>


More information about the libvir-list mailing list