mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
mgmtd: fix memory leak in FE adapter
Signed-off-by: Christian Hopps <chopps@labn.net>
This commit is contained in:
parent
3d3ee2a1af
commit
764f276022
|
@ -190,7 +190,7 @@ static void mgmt_fe_cleanup_session(struct mgmt_fe_session_ctx **sessionp)
|
|||
assert(session->adapter->refcount > 1);
|
||||
mgmt_fe_adapter_unlock(&session->adapter);
|
||||
}
|
||||
|
||||
darr_free_free(session->notify_xpaths);
|
||||
hash_release(mgmt_fe_sessions, session);
|
||||
XFREE(MTYPE_MGMTD_FE_SESSION, session);
|
||||
*sessionp = NULL;
|
||||
|
|
Loading…
Reference in a new issue