]> 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)
committerJán Tomko <jtomko@redhat.com>
Wed, 29 Mar 2017 08:36:55 +0000 (10:36 +0200)
commite9f9690958b7fc86c4002c16cd2bdccba0dd07d1
tree1a90145ad460bc226995178476ddb74b2c103a02
parent8ef12b96faa357eae17fad7ab884b63dbd70feaf
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
src/conf/storage_conf.c
tests/storagepoolxml2xmlout/pool-logical-noname.xml [new file with mode: 0644]
tests/storagepoolxml2xmltest.c