* exceptions.cc (try_to_debug): Free environment pointer when not used

anymore (CID 59968).
This commit is contained in:
Corinna Vinschen 2014-06-23 13:23:14 +00:00
parent 4ea38ac7ef
commit 4337e28e62
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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.

View File

@ -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 ());