]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix leak of comment string if virConfAddEntry fails on OOM
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 25 Sep 2013 10:32:07 +0000 (11:32 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 25 Sep 2013 17:12:09 +0000 (18:12 +0100)
commita8412f868b52b91cf3d40389588c28e733e953e3
tree12ca5d4781a425ed681a1c09d79aab2176ce6d67
parent1f66001c6996d5f4f96d072a74304452c2236925
Fix leak of comment string if virConfAddEntry fails on OOM

The code parsing comments in config files called virConfAddEntry
but did not check for failure. This caused the comment string to
leak on OOM.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/util/virconf.c