]> git.ipfire.org Git - thirdparty/libvirt.git/commit
lxc_container.c: avoid a leak on error paths
authorJim Meyering <meyering@redhat.com>
Fri, 4 Sep 2009 14:12:35 +0000 (16:12 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 4 Sep 2009 16:59:29 +0000 (18:59 +0200)
commit3ef2e05c4dc055f7627dee38c452d23cf2842564
tree6cd2cacd7207cb3971c24dc5d057dc2ca3dc5ad5
parent1469bcf6c5f4859ae6601ca91689106668a04e7a
lxc_container.c: avoid a leak on error paths

* src/lxc_container.c (lxcContainerMountBasicFS): Don't leak upon failure.
Add "cleanup:" label and change each post-allocation failure to
use "goto cleanup" rather than returning immediately.
src/lxc_container.c