libxl: only close fds which successfully opened in libxl__spawn_local_dm
authorMatthew Daley <mattjd@gmail.com>
Wed, 30 Oct 2013 07:51:54 +0000 (20:51 +1300)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 31 Oct 2013 21:55:52 +0000 (21:55 +0000)
commit2ffc14ea225096e2970a86c13bec6c7fc2df822b
tree98fef487f5f36112afa3fd63c6a6a40a40c5e088
parent1edd6d8da354442b860ae28b8944dbd8a102d5f7
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>
tools/libxl/libxl_dm.c