diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2014-06-23 13:23:14 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2014-06-23 13:23:14 +0000 |
commit | 4337e28e6218bd0f924536998681d2f1da3db98e (patch) | |
tree | d312f36c18ca564304d2b3b1ff605688f9d9fbf8 /winsup/cygwin/exceptions.cc | |
parent | 4ea38ac7efd250e716caa2eff26fec7707595520 (diff) | |
download | cygnal-4337e28e6218bd0f924536998681d2f1da3db98e.tar.gz cygnal-4337e28e6218bd0f924536998681d2f1da3db98e.tar.bz2 cygnal-4337e28e6218bd0f924536998681d2f1da3db98e.zip |
* exceptions.cc (try_to_debug): Free environment pointer when not used
anymore (CID 59968).
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r-- | winsup/cygwin/exceptions.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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 ()); |