From: David Scott Date: Mon, 8 Mar 2010 11:28:56 +0000 (+0000) Subject: CA-38105: remove a unix domain socket leak in an error path. X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=7347962acdbc17b0dd7351cba1e6b5b66cfa473b;p=xcp%2Fxen-api-libs.git CA-38105: remove a unix domain socket leak in an error path. Signed-off-by: David Scott --- diff --git a/forking_executioner/child.ml b/forking_executioner/child.ml index 1806698..7413b74 100644 --- a/forking_executioner/child.ml +++ b/forking_executioner/child.ml @@ -163,5 +163,6 @@ let run state comms_sock fd_sock fd_sock_path = | e -> debug "Caught unexpected exception: %s" (Printexc.to_string e); write_log (); + Unixext.unlink_safe fd_sock_path; exit 1