Fixed: memory leak
This commit is contained in:
parent
057a23d435
commit
eac5e73528
@ -133,6 +133,9 @@ void connlist_destroy ( struct connlist * cl )
|
|||||||
|
|
||||||
if ( cl->by_addr )
|
if ( cl->by_addr )
|
||||||
mavl_destroy ( cl->by_addr );
|
mavl_destroy ( cl->by_addr );
|
||||||
|
if ( cl->by_session_id)
|
||||||
|
mavl_destroy ( cl->by_session_id );
|
||||||
|
|
||||||
|
|
||||||
pthread_mutex_destroy ( &cl->connlist_mutex );
|
pthread_mutex_destroy ( &cl->connlist_mutex );
|
||||||
free ( cl );
|
free ( cl );
|
||||||
|
Loading…
Reference in New Issue
Block a user