]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: do not steal pointers from the pool source
authorJán Tomko <jtomko@redhat.com>
Tue, 28 Mar 2017 13:11:52 +0000 (15:11 +0200)
committerCole Robinson <crobinso@redhat.com>
Wed, 10 May 2017 19:42:45 +0000 (15:42 -0400)
commit47fa3d3992b18c27d5aafb9f6503cd79cb827aad
tree5c4fec33787e7be2fda55f0cdb3ae84a77d0b82b
parent987213ac7d455bd2b77735140b87a0b311d83f06
conf: do not steal pointers from the pool source

Since commit fcbbb28 we steal the pointer to the storage pool
source name if there was no pool name specified.

Properly duplicate the string to avoid freeing it twice.

https://bugzilla.redhat.com/show_bug.cgi?id=1436400
(cherry picked from commit e9f9690958b7fc86c4002c16cd2bdccba0dd07d1)
src/conf/storage_conf.c
tests/storagepoolxml2xmlout/pool-logical-noname.xml [new file with mode: 0644]
tests/storagepoolxml2xmltest.c