浏览代码

Fix small resource leak

Thanks to the bug report of ccote on the civetweb google group from Dec 23, 2015
bel 9 年之前
父节点
当前提交
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__)
 #if defined(_WIN32) && !defined(__SYMBIAN32__)
 	CloseHandle(tls.pthread_cond_helper_mutex);
 	CloseHandle(tls.pthread_cond_helper_mutex);
 #endif
 #endif
+	pthread_mutex_destroy(&conn->mutex);
 	mg_free(conn);
 	mg_free(conn);
 
 
 	DEBUG_TRACE("%s", "exiting");
 	DEBUG_TRACE("%s", "exiting");