]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage_backend_fs: Don't free a part of a structure on error
authorPeter Krempa <pkrempa@redhat.com>
Mon, 9 Jul 2012 12:10:05 +0000 (14:10 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 9 Jul 2012 14:25:15 +0000 (16:25 +0200)
commitab9c72ae9e55e7190f52ad1550624630a5c7f78b
tree1aa41d1566a863262de096fd922309c1a0786b64
parent73f4b3088251cbe69a2c05b94063c942fde8b59b
storage_backend_fs: Don't free a part of a structure on error

As the storage pool sources are stored in a list of structs, the pointer
returned by virStoragePoolSourceListNewSource() shouldn't be freed as it
points in the middle of a memory block. This combined with a regression
that takes the error path every time on caused a double-free abort on
the src struct in question.
src/storage/storage_backend_fs.c