]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virDomainDefParseXML: set the argument of virBitmapFree to NULL after calling virBitm...
authorLiuji (Jeremy) <jeremy.liu@huawei.com>
Wed, 11 Sep 2013 02:13:32 +0000 (22:13 -0400)
committerJán Tomko <jtomko@redhat.com>
Tue, 15 Oct 2013 13:17:44 +0000 (15:17 +0200)
commitcdc148ec5b3f1bfdd06862a41ff81ccc29584f08
tree8aa927e7fb6b6e2646890112ca9adbea4edb348e
parente69a585db415118accd3a074d48594c0db3da43d
virDomainDefParseXML: set the argument of virBitmapFree to NULL after calling virBitmapFree

After freeing the bitmap pointer, it must set the pointer to NULL.
This will avoid any other use of the freed memory of the bitmap pointer.

https://bugzilla.redhat.com/show_bug.cgi?id=1006710

Signed-off-by: Liuji (Jeremy) <jeremy.liu@huawei.com>
(cherry picked from commit ef5d51d491356f1f4287aa3a8b908b183b6dd9aa)
src/conf/domain_conf.c