Compare commits

..

2 Commits

Author SHA1 Message Date
a389003199 Fix: memory leak 2022-07-31 22:46:39 +02:00
eac5e73528 Fixed: memory leak 2022-07-31 22:44:58 +02:00
2 changed files with 6 additions and 0 deletions

View File

@ -31,6 +31,9 @@ void discovery_cache_destroy(struct cw_DiscoveryCache * c)
if (c->byaddrp) if (c->byaddrp)
mavl_destroy(c->byaddrp); mavl_destroy(c->byaddrp);
if (c->queue)
free(c->queue);
free(c); free(c);
} }

View File

@ -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 );