mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-01 13:10:43 +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
@@ -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) {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
#include "net_builtin.h"
|
||||
|
||||
#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