diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2014-06-23 15:13:12 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2014-06-23 15:13:12 +0000 |
commit | cf06a0b18cf8dd93531f73e2a31f0c72389e84ec (patch) | |
tree | 581eef7d5f2f0f52da4dbe9bbf553e344544b349 /winsup/cygserver/bsd_helper.cc | |
parent | f739fd3ef0716dd603f2c917f5e502d6a7f71f89 (diff) | |
download | cygnal-cf06a0b18cf8dd93531f73e2a31f0c72389e84ec.tar.gz cygnal-cf06a0b18cf8dd93531f73e2a31f0c72389e84ec.tar.bz2 cygnal-cf06a0b18cf8dd93531f73e2a31f0c72389e84ec.zip |
* bsd_helper.cc (ipcexit_creat_hookthread): Delete shs in another error
case to make Coverity really happy (CID 59993).
Diffstat (limited to 'winsup/cygserver/bsd_helper.cc')
-rw-r--r-- | winsup/cygserver/bsd_helper.cc | 1 |
1 files changed, 1 insertions, 0 deletions
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, |