call mg_tcpip_free from mg_mgr_free()

This commit is contained in:
Sergio R. Caprile committed 2025-05-15 17:37:40 -03:00
1 parent 34cdce750d
commit 54d4611eb6
6 files changed
+8 -9

No files matched your search

+3
View File
@@ -247,6 +247,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) {