Fix: memory leak
This commit is contained in:
parent
eac5e73528
commit
a389003199
@ -31,6 +31,9 @@ void discovery_cache_destroy(struct cw_DiscoveryCache * c)
|
||||
|
||||
if (c->byaddrp)
|
||||
mavl_destroy(c->byaddrp);
|
||||
|
||||
if (c->queue)
|
||||
free(c->queue);
|
||||
|
||||
free(c);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user