]> 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>
Wed, 11 Sep 2013 07:18:28 +0000 (09:18 +0200)
commitef5d51d491356f1f4287aa3a8b908b183b6dd9aa
tree3aea42068b0a512e2944e9147d21a62ae0e5e91c
parentc9e1c6a93ee3f702fed08775a1b57bf51f35a54f
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>
src/conf/domain_conf.c