فهرست منبع

Fix small resource leak

Thanks to the bug report of ccote on the civetweb google group from Dec 23, 2015
bel 10 سال پیش
والد
کامیت
7389bbe933
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      src/civetweb.c

+ 1 - 0
src/civetweb.c

@@ -11728,6 +11728,7 @@ worker_thread_run(void *thread_func_param)
 #if defined(_WIN32) && !defined(__SYMBIAN32__)
 	CloseHandle(tls.pthread_cond_helper_mutex);
 #endif
+	pthread_mutex_destroy(&conn->mutex);
 	mg_free(conn);
 
 	DEBUG_TRACE("%s", "exiting");