]> xenbits.xensource.com Git - 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)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 14 Mar 2013 12:42:21 +0000 (12:42 +0000)
commitf2d8190cfb8e52b006a5cfd080b42d2a1755fd28
tree02ac5e69da67eb6048f09d9911c311b6f651ab7f
parent2f98a7f7ba0e1d65d6b946610978c12f7757cad1
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>
src/security/security_selinux.c