mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-06 15:51:25 +00:00
Fix #1710 - free MIP in mg_mgr_free()
This commit is contained in:
1 parent
419126652e
commit
cd30cf2d6c
2 files changed
+2
No files matched your search
@@ -3499,6 +3499,7 @@ void mg_mgr_free(struct mg_mgr *mgr) {
|
|||||||
#if MG_ENABLE_EPOLL
|
#if MG_ENABLE_EPOLL
|
||||||
if (mgr->epoll_fd >= 0) close(mgr->epoll_fd), mgr->epoll_fd = -1;
|
if (mgr->epoll_fd >= 0) close(mgr->epoll_fd), mgr->epoll_fd = -1;
|
||||||
#endif
|
#endif
|
||||||
|
free(mgr->priv);
|
||||||
}
|
}
|
||||||
|
|
||||||
void mg_mgr_init(struct mg_mgr *mgr) {
|
void mg_mgr_init(struct mg_mgr *mgr) {
|
||||||
|
|||||||
@@ -243,6 +243,7 @@ void mg_mgr_free(struct mg_mgr *mgr) {
|
|||||||
#if MG_ENABLE_EPOLL
|
#if MG_ENABLE_EPOLL
|
||||||
if (mgr->epoll_fd >= 0) close(mgr->epoll_fd), mgr->epoll_fd = -1;
|
if (mgr->epoll_fd >= 0) close(mgr->epoll_fd), mgr->epoll_fd = -1;
|
||||||
#endif
|
#endif
|
||||||
|
free(mgr->priv);
|
||||||
}
|
}
|
||||||
|
|
||||||
void mg_mgr_init(struct mg_mgr *mgr) {
|
void mg_mgr_init(struct mg_mgr *mgr) {
|
||||||
|
|||||||
Reference in new issue
Block a user