From cf06a0b18cf8dd93531f73e2a31f0c72389e84ec Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 23 Jun 2014 15:13:12 +0000 Subject: * bsd_helper.cc (ipcexit_creat_hookthread): Delete shs in another error case to make Coverity really happy (CID 59993). --- winsup/cygserver/ChangeLog | 5 +++++ winsup/cygserver/bsd_helper.cc | 1 + 2 files changed, 6 insertions(+) (limited to 'winsup/cygserver') diff --git a/winsup/cygserver/ChangeLog b/winsup/cygserver/ChangeLog index 3c9b74b82..379007bec 100644 --- a/winsup/cygserver/ChangeLog +++ b/winsup/cygserver/ChangeLog @@ -1,3 +1,8 @@ +2014-05-19 Corinna Vinschen + + * bsd_helper.cc (ipcexit_creat_hookthread): Delete shs in another error + case to make Coverity really happy (CID 59993). + 2014-06-23 Corinna Vinschen * client.cc: Throughout, fix debug output of signed byte count value. diff --git a/winsup/cygserver/bsd_helper.cc b/winsup/cygserver/bsd_helper.cc index 9b64918f9..524817f1d 100644 --- a/winsup/cygserver/bsd_helper.cc +++ b/winsup/cygserver/bsd_helper.cc @@ -200,6 +200,7 @@ ipcexit_creat_hookthread (struct thread *td) GetCurrentProcess (), &shs->process_hdl, 0, FALSE, DUPLICATE_SAME_ACCESS)) { + delete shs; log (LOG_CRIT, "failed to duplicate process handle, error = %u", GetLastError ()); return cygwin_internal (CW_GET_ERRNO_FROM_WINERROR, -- cgit v1.2.3