mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-25 20:28:27 +00:00
call mg_tcpip_free from mg_mgr_free()
This commit is contained in:
1 parent
34cdce750d
commit
54d4611eb6
6 files changed
+8
-9
No files matched your search
+4
-1
@@ -4127,6 +4127,9 @@ void mg_mgr_free(struct mg_mgr *mgr) {
|
||||
if (mgr->epoll_fd >= 0) close(mgr->epoll_fd), mgr->epoll_fd = -1;
|
||||
#endif
|
||||
mg_tls_ctx_free(mgr);
|
||||
#if MG_ENABLE_TCPIP
|
||||
if (mgr->ifp) mg_tcpip_free(mgr->ifp);
|
||||
#endif
|
||||
}
|
||||
|
||||
void mg_mgr_init(struct mg_mgr *mgr) {
|
||||
@@ -4162,7 +4165,7 @@ void mg_mgr_init(struct mg_mgr *mgr) {
|
||||
#endif
|
||||
|
||||
|
||||
#if defined(MG_ENABLE_TCPIP) && MG_ENABLE_TCPIP
|
||||
#if MG_ENABLE_TCPIP
|
||||
#define MG_EPHEMERAL_PORT_BASE 32768
|
||||
#define PDIFF(a, b) ((size_t) (((char *) (b)) - ((char *) (a))))
|
||||
|
||||
|
||||
Reference in new issue
Block a user