Fixed #3535 (Leaking socket)

This commit is contained in:
Alexander Mai 2014-01-26 09:42:46 +01:00 committed by Daniel Marjamäki
parent c5971b7137
commit 59d43de5e9
2 changed files with 9 additions and 0 deletions

View File

@ -2,5 +2,10 @@
<def>
<function name="usleep"> <noreturn>false</noreturn> <arg nr="1"><not-bool/><valid>0-999999</valid></arg> </function>
<function name="_exit"> <noreturn>true</noreturn> </function>
<resource>
<dealloc>close</dealloc>
<alloc init="true">socket</alloc>
</resource>
</def>

View File

@ -4,6 +4,10 @@
<alloc>CreatePen</alloc>
<dealloc>DestroyObject</dealloc>
</resource>
<resource>
<dealloc>closesocket</dealloc>
<alloc init="true">socket</alloc>
</resource>
<function name="ZeroMemory">
<noreturn>false</noreturn>