]> git.ipfire.org Git - thirdparty/libvirt.git/commit
uml: Plug memory leak on umlStartVMDaemon() error path
authorAlex Jia <ajia@redhat.com>
Wed, 30 Nov 2011 05:57:10 +0000 (13:57 +0800)
committerEric Blake <eblake@redhat.com>
Wed, 30 Nov 2011 23:37:35 +0000 (16:37 -0700)
commitd7cc2520f23cad545275f90364d2c18f15d6e2f0
tree72db255a8fb9cecd77e0e7c785c501b94f57dc48
parent773a4ea5e1c4d425101f6488e58340973b396e8c
uml: Plug memory leak on umlStartVMDaemon() error path

Detected by Coverity.  Leak introduced in commit 8866eed.

Two bugs here:
1. logfd wasn't closed on all return paths
2. if we failed to mark a domain autodestroy, then the domain
was not made transient but we still returned success

Signed-off-by: Alex Jia <ajia@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
src/uml/uml_driver.c