diff options
Diffstat (limited to 'winsup/cygwin/cygtls.cc')
-rw-r--r-- | winsup/cygwin/cygtls.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/winsup/cygwin/cygtls.cc b/winsup/cygwin/cygtls.cc index 47d03b669..817c8e3b1 100644 --- a/winsup/cygwin/cygtls.cc +++ b/winsup/cygwin/cygtls.cc @@ -12,6 +12,7 @@ details. */ #include "assert.h" #include <syslog.h> #include <signal.h> +#include <malloc.h> #include "exceptions.h" #include "sync.h" #include "cygerrno.h" @@ -158,6 +159,8 @@ _cygtls::remove (DWORD wait) // select to control this themselves if (locals.exitsock != INVALID_SOCKET) closesocket (locals.exitsock); + if (locals.process_ident != NULL) + free (locals.process_ident); do { sentry here (wait); |