1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-12-22 04:02:04 +03:00

Merge pull request #261 from javaJake/websocketclose

Only free conn if in client context.
This commit is contained in:
bel2125
2016-02-19 23:59:10 +01:00

View File

@@ -10974,10 +10974,10 @@ mg_close_connection(struct mg_connection *conn)
} }
mg_free(client_ctx->workerthreadids); mg_free(client_ctx->workerthreadids);
mg_free(client_ctx); mg_free(client_ctx);
}
(void)pthread_mutex_destroy(&conn->mutex); (void)pthread_mutex_destroy(&conn->mutex);
mg_free(conn); mg_free(conn);
} }
}
static struct mg_connection * static struct mg_connection *