libxl: only close fds which successfully opened in libxl__spawn_local_dm

Coverity-ID: 1055565
Signed-off-by: Matthew Daley <mattjd@gmail.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
This commit is contained in:
Matthew Daley authored and Ian Campbell committed 2013-10-31 21:55:52 +00:00
1 parent 1edd6d8da3
commit 2ffc14ea22
1 file changed
+2 -2
+2 -2
View File
@@ -1259,8 +1259,8 @@ retry_transaction:
rc = 0;
out_close:
close(null);
close(logfile_w);
if (null != -1) close(null);
if (logfile_w != -1) close(logfile_w);
out:
if (rc)
device_model_spawn_outcome(egc, dmss, rc);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.