mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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:
1 parent
1edd6d8da3
commit
2ffc14ea22
1 file changed
+2
-2
@@ -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);
|
||||
|
||||