Author: jgardou Date: Tue Feb 17 15:08:54 2015 New Revision: 66337
URL: http://svn.reactos.org/svn/reactos?rev=66337&view=rev Log: [WS2_32] - Do not free resources at process termination. - Free the provider catalog after the handle table, since the latter references the former.
Modified: trunk/reactos/dll/win32/ws2_32/misc/dllmain.c
Modified: trunk/reactos/dll/win32/ws2_32/misc/dllmain.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/ws2_32/misc/dllma... ============================================================================== --- trunk/reactos/dll/win32/ws2_32/misc/dllmain.c [iso-8859-1] (original) +++ trunk/reactos/dll/win32/ws2_32/misc/dllmain.c [iso-8859-1] Tue Feb 17 15:08:54 2015 @@ -887,9 +887,11 @@
case DLL_PROCESS_DETACH: { - DestroyCatalog(); - - FreeProviderHandleTable(); + if (!lpReserved) + { + FreeProviderHandleTable(); + DestroyCatalog(); + } } break;