mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-22 20:01:49 +00:00
Calling thread_stop() before free-ing conn
This commit is contained in:
1 parent
6d14ed3a18
commit
cd6005c86f
1 file changed
+2
-3
+2
-3
@@ -5164,12 +5164,11 @@ static void *worker_thread(void *thread_func_param) {
|
|||||||
|
|
||||||
close_connection(conn);
|
close_connection(conn);
|
||||||
}
|
}
|
||||||
free(conn);
|
|
||||||
|
|
||||||
if (ctx->callbacks.thread_stop != NULL) {
|
if (ctx->callbacks.thread_stop != NULL) {
|
||||||
ctx->callbacks.thread_stop(&conn->request_info.user_data,
|
ctx->callbacks.thread_stop(&conn->request_info.user_data,
|
||||||
&conn->request_info.conn_data);
|
&conn->request_info.conn_data);
|
||||||
}
|
}
|
||||||
|
free(conn);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Signal master that we're done with connection and exiting
|
// Signal master that we're done with connection and exiting
|
||||||
|
|||||||
Reference in new issue
Block a user