fix the memory leak

This commit is contained in:
Sukchan Lee 2018-01-18 08:03:37 +09:00
parent c9b4a1023b
commit 95708a6ce4
1 changed files with 6 additions and 0 deletions

View File

@ -1602,6 +1602,12 @@ status_t mme_enb_remove_all()
for (hi = mme_enb_first(); hi; hi = mme_enb_next(hi))
{
enb = mme_enb_this(hi);
#ifdef NO_FD_LOCK
if (enb->sock_type == SOCK_STREAM)
s1ap_delete(enb->sock);
#else
#error do not use lock in socket fd
#endif
mme_enb_remove(enb);
}