Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2014-06-23 19:13:12 +0400
committerCorinna Vinschen <corinna@vinschen.de>2014-06-23 19:13:12 +0400
commitcf06a0b18cf8dd93531f73e2a31f0c72389e84ec (patch)
tree581eef7d5f2f0f52da4dbe9bbf553e344544b349 /winsup/cygserver
parentf739fd3ef0716dd603f2c917f5e502d6a7f71f89 (diff)
* bsd_helper.cc (ipcexit_creat_hookthread): Delete shs in another error
case to make Coverity really happy (CID 59993).
Diffstat (limited to 'winsup/cygserver')
-rw-r--r--winsup/cygserver/ChangeLog5
-rw-r--r--winsup/cygserver/bsd_helper.cc1
2 files changed, 6 insertions, 0 deletions
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 <corinna@vinschen.de>
+
+ * bsd_helper.cc (ipcexit_creat_hookthread): Delete shs in another error
+ case to make Coverity really happy (CID 59993).
+
2014-06-23 Corinna Vinschen <corinna@vinschen.de>
* 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,