SourceForge.net | 29 Dec 2010 17:08
Picon
Favicon

[ libetpan-Bugs-3147644 ] HANDLE leaks on Windows

Bugs item #3147644, was opened at 2010-12-29 19:08
Message generated for change (Tracker Item Submitted) made by perminov
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=429696&aid=3147644&group_id=41064

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: SMTP
Group: Latest stable - libEtPan!
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Sergey Perminov (perminov)
Assigned to: Nobody/Anonymous (nobody)
Summary: HANDLE leaks on Windows

Initial Comment:
CreateEvent call returns HANDLE object
This HANDLE must be closed otherwise HANDLE leakage will occur (it leads to non-paged pool exhaustion).

in mailstream_socket.c and in mailstream_ssl.c
CloseHandle(event) must be called after WaitForMultipleObjects()

This fix must be done for both read and write operations.

----------------------------------------------------------------------

You can respond by visiting: 
(Continue reading)


Gmane