]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix memory leak on OOM in virSecuritySELinuxMCSFind
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 13 Mar 2013 17:39:52 +0000 (17:39 +0000)
committerCole Robinson <crobinso@redhat.com>
Mon, 1 Apr 2013 13:48:04 +0000 (09:48 -0400)
commitd4e0e86c49ed4e6a8b9f88f7a81c38785942ed2a
tree4d7b995f0c742005e3fb448097f277cbbecc3492
parent2bcf1522ff4b72e559cd5203ab916fad2e2d6b15
Fix memory leak on OOM in virSecuritySELinuxMCSFind

The body of the loop in virSecuritySELinuxMCSFind would
directly 'return NULL' on OOM, instead of jumping to the
cleanup label. This caused a leak of several local vars.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
(cherry picked from commit f2d8190cfb8e52b006a5cfd080b42d2a1755fd28)
src/security/security_selinux.c