[pywin32-checkins] pywin32/win32/src win32file.i,1.100,1.101
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
|
From: Roger U. <ru...@us...> - 2009-02-01 17:12:58
|
Update of /cvsroot/pywin32/pywin32/win32/src In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv10945 Modified Files: win32file.i Log Message: In ConnectEx, free the result of getaddrinfo Index: win32file.i =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/src/win32file.i,v retrieving revision 1.100 retrieving revision 1.101 diff -C2 -d -r1.100 -r1.101 *** win32file.i 1 Feb 2009 16:50:36 -0000 1.100 --- win32file.i 1 Feb 2009 17:12:49 -0000 1.101 *************** *** 1849,1852 **** --- 1849,1853 ---- if (!PyWinObject_AsOVERLAPPED(obOverlapped, &pOverlapped)) { + freeaddrinfo(res); return NULL; } *************** *** 1857,1860 **** --- 1858,1862 ---- rc=WSAGetLastError(); Py_END_ALLOW_THREADS; + freeaddrinfo(res); if (rc==0 || rc == ERROR_IO_PENDING) return Py_BuildValue("ii", rc, sent); |