Skip to content
Snippets Groups Projects
Commit 5da70730 authored by rswindell's avatar rswindell
Browse files

Fixed mutex leak in Win32 build when stopping/restarting FTP server.

parent 02c7d253
No related branches found
No related tags found
No related merge requests found
...@@ -3779,6 +3779,13 @@ static void cleanup(int code) ...@@ -3779,6 +3779,13 @@ static void cleanup(int code)
lprintf("0000 !WSACleanup ERROR %d",ERROR_VALUE); lprintf("0000 !WSACleanup ERROR %d",ERROR_VALUE);
#endif #endif
#ifdef _WIN32
if(socket_mutex!=NULL) {
CloseHandle(socket_mutex);
socket_mutex=NULL;
}
#endif
#ifdef JAVASCRIPT #ifdef JAVASCRIPT
lprintf("0000 JavaScript: Destroying runtime"); lprintf("0000 JavaScript: Destroying runtime");
if(js_runtime!=NULL) { if(js_runtime!=NULL) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment