* cygtls.cc (_cygtls::remove): Close cw_timer handle, thus avoiding
handle leak.
This commit is contained in:
parent
000235c38d
commit
78cefca9fc
|
@ -1,3 +1,8 @@
|
||||||
|
2013-07-19 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* cygtls.cc (_cygtls::remove): Close cw_timer handle, thus avoiding
|
||||||
|
handle leak.
|
||||||
|
|
||||||
2013-07-19 Jon TURNEY <jon.turney@dronecode.org.uk>
|
2013-07-19 Jon TURNEY <jon.turney@dronecode.org.uk>
|
||||||
|
|
||||||
* cygserver_ipc.h (ipc_retval::ipc_retval): Take ssize_t as argument
|
* cygserver_ipc.h (ipc_retval::ipc_retval): Take ssize_t as argument
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
/* cygtls.cc
|
/* cygtls.cc
|
||||||
|
|
||||||
Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Red
|
Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012,
|
||||||
Hat, Inc.
|
2013 Red Hat, Inc.
|
||||||
|
|
||||||
This software is a copyrighted work licensed under the terms of the
|
This software is a copyrighted work licensed under the terms of the
|
||||||
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
|
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
|
||||||
|
@ -193,6 +193,9 @@ _cygtls::remove (DWORD wait)
|
||||||
free_local (hostent_buf);
|
free_local (hostent_buf);
|
||||||
/* Free temporary TLS path buffers. */
|
/* Free temporary TLS path buffers. */
|
||||||
locals.pathbufs.destroy ();
|
locals.pathbufs.destroy ();
|
||||||
|
/* Close timer handle. */
|
||||||
|
if (locals.cw_timer)
|
||||||
|
NtClose (locals.cw_timer);
|
||||||
cygheap->remove_tls (this, wait);
|
cygheap->remove_tls (this, wait);
|
||||||
remove_wq (wait);
|
remove_wq (wait);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue