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 17:23:14 +0400
committerCorinna Vinschen <corinna@vinschen.de>2014-06-23 17:23:14 +0400
commit4337e28e6218bd0f924536998681d2f1da3db98e (patch)
treed312f36c18ca564304d2b3b1ff605688f9d9fbf8
parent4ea38ac7efd250e716caa2eff26fec7707595520 (diff)
* exceptions.cc (try_to_debug): Free environment pointer when not used
anymore (CID 59968).
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/exceptions.cc3
2 files changed, 7 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 06900f748..4c5ecf982 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,10 @@
2014-06-23 Corinna Vinschen <corinna@vinschen.de>
+ * exceptions.cc (try_to_debug): Free environment pointer when not used
+ anymore (CID 59968).
+
+2014-06-23 Corinna Vinschen <corinna@vinschen.de>
+
* net.cc (cygwin_getaddrinfo): Fix value of hint->ai_addrlen on 64 bit.
Explain why.
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc
index 186a4d4dc..7e707013e 100644
--- a/winsup/cygwin/exceptions.cc
+++ b/winsup/cygwin/exceptions.cc
@@ -482,9 +482,10 @@ try_to_debug (bool waitloop)
*q = L'_' ;
SetEnvironmentVariableW (L"CYGWIN", p + wcslen (L"CYGWIN=")) ;
}
- break ;
+ break;
}
}
+ FreeEnvironmentStringsW (rawenv);
console_printf ("*** starting debugger for pid %u, tid %u\n",
cygwin_pid (GetCurrentProcessId ()), GetCurrentThreadId ());