]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: Fix a resource leak in storageVolCreateXML
authorJohn Ferlan <jferlan@redhat.com>
Thu, 8 Oct 2015 20:24:47 +0000 (16:24 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 13 Oct 2015 22:03:55 +0000 (18:03 -0400)
commit27d2d99fe75299cccaf121db140b2913dc630b96
treed80dbb8a346eb2a95186a54cb375a91e6e1d1297
parent6ab98a68b7c55e64568b690979ffd29655a16760
storage: Fix a resource leak in storageVolCreateXML

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@redhat.com>
src/storage/storage_driver.c