Memory leak in select.

2011-04-18 Thread Peter Rosin
Hi! Using the following STC, I'm seeing what appears to be a memory leak in select(2). 8<---(selectleak.c)- #include #include #include int main(void) { fd_set fdset; struct timeval tv; long flags = fcntl(0, F_GETFL); fcntl(0,

Re: Memory leak in select

2011-04-18 Thread Peter Rosin
Den 2011-04-18 13:43 skrev Peter Rosin: > Hi! > > Using the following STC, I'm seeing what appears to be a memory > leak in select(2). > > 8<---(selectleak.c)- > #include > #include > #include > > int > main(void) > {

Re: Memory leak in select

2011-04-18 Thread Peter Rosin
Den 2011-04-18 14:23 skrev Peter Rosin: > Den 2011-04-18 13:43 skrev Peter Rosin: >> Hi! >> >> Using the following STC, I'm seeing what appears to be a memory >> leak in select(2). >> > 8<---(selectleak.c)- > #include >

Re: Memory leak in select

2011-04-18 Thread Christopher Faylor
On Mon, Apr 18, 2011 at 04:32:10PM +0200, Peter Rosin wrote: >Den 2011-04-18 14:23 skrev Peter Rosin: >> Den 2011-04-18 13:43 skrev Peter Rosin: >>> Hi! >>> >>> Using the following STC, I'm seeing what appears to be a memory >>> leak in se

Re: Memory leak in select

2011-04-18 Thread Christopher Faylor
following STC, I'm seeing what appears to be a memory >>>> leak in select(2). >>>> >>> 8<---(selectleak.c)- >>> #include >>> #include >>> >>> int >>> main(void) >>> { >>

Re: Memory leak in select

2011-04-18 Thread Peter Rosin
n: >>>>> Hi! >>>>> >>>>> Using the following STC, I'm seeing what appears to be a memory >>>>> leak in select(2). >>>>> >>>> 8<---(selectleak.c)- >>>> #include >&g

Re: Memory leak in select

2011-04-18 Thread Peter Rosin
Den 2011-04-18 17:24 skrev Christopher Faylor: > On Mon, Apr 18, 2011 at 04:32:10PM +0200, Peter Rosin wrote: >> Den 2011-04-18 14:23 skrev Peter Rosin: >>> Den 2011-04-18 13:43 skrev Peter Rosin: >>>> Hi! >>>> >>>> Using the following ST

Re: Memory leak in select

2011-04-19 Thread Peter Rosin
in: >>>>> Den 2011-04-18 13:43 skrev Peter Rosin: >>>>>> Hi! >>>>>> >>>>>> Using the following STC, I'm seeing what appears to be a memory >>>>>> leak in select(2). >>>>>> >

Re: Memory leak in select

2011-04-19 Thread Christopher Faylor
:10PM +0200, Peter Rosin wrote: >>>>> Den 2011-04-18 14:23 skrev Peter Rosin: >>>>>> Den 2011-04-18 13:43 skrev Peter Rosin: >>>>>>> Hi! >>>>>>> >>>>>>> Using the following STC, I'm seeing what appears to

Re: Memory leak in select

2011-04-20 Thread Peter Rosin
Den 2011-04-20 03:10 skrev Christopher Faylor: > On Tue, Apr 19, 2011 at 11:31:38PM +0200, Peter Rosin wrote: >>>>>>> Den 2011-04-18 13:43 skrev Peter Rosin: >>>>>>>> Using the following STC, I'm seeing what appears to be a memory >>>&

Re: Memory leak in select

2011-04-20 Thread Thomas Stalder
Hello, I just have a question, the same change would it not necessary for the functions: serial_cleanup, mailslot_cleanup and socket_cleanup in select.cc (like attached patch) ? I don't know, it's just a question. The patch are not tested. Regards, Thomas 2011/4/20 Christopher Faylor >>2011-04

Re: Memory leak in select

2011-04-20 Thread Corinna Vinschen
On Apr 20 15:16, Thomas Stalder wrote: > Hello, > > I just have a question, the same change would it not necessary for the > functions: serial_cleanup, mailslot_cleanup and socket_cleanup in > select.cc (like attached patch) ? > > I don't know, it's just a question. The patch are not tested. May

Re: Memory leak in select

2011-04-20 Thread Thomas Stalder
Hello, I have test my patch, but it not resolve my memory issue ( http://cygwin.com/ml/cygwin/2011-04/msg00292.html ) Regards, Thomas 2011/4/20 Corinna Vinschen > On Apr 20 15:16, Thomas Stalder wrote: >> I don't know, it's just a question. The patch are not tested. > > Maybe you should actuall

_kbhit & memory leak in select()

2006-02-05 Thread Michiel De Hoon
Hi everybody, For one of my software projects, I need the _kbhit function to check the console for keyboard input. While this function is present in msvcrt.dll, it is missing from cygwin1.dll, so I started writing this function myself (I'm hoping to contribute it to Cygwin if it works well). Howe

Re: _kbhit & memory leak in select()

2006-02-05 Thread Corinna Vinschen
On Feb 5 13:17, Michiel De Hoon wrote: > 1) Where is the select_record deleted? The select_stuff variable sel will be > gone after we exit cygwin_select, and with it the pointer to the > select_record we allocated in select_read. In the select_stuff destructor. Corinna -- Corinna Vinschen

Re: _kbhit & memory leak in select()

2006-02-05 Thread Christopher Faylor
On Sun, Feb 05, 2006 at 01:17:33PM -0500, Michiel De Hoon wrote: >For one of my software projects, I need the _kbhit function to check the >console for keyboard input. While this function is present in msvcrt.dll, it >is missing from cygwin1.dll, so I started writing this function myself (I'm >hopi

Re: _kbhit & memory leak in select()

2006-02-10 Thread Michiel De Hoon
> On Feb 5 13:17, Michiel De Hoon wrote: > > 1) Where is the select_record deleted? The select_stuff variable sel will be > > gone after we exit cygwin_select, and with it the pointer to the > > select_record we allocated in select_read. > > In the select_stuff destructor. Ha. You're right. I gue