Fix: memory leak

This commit is contained in:
7u83 2022-07-31 22:46:39 +02:00
parent eac5e73528
commit a389003199
1 changed files with 3 additions and 0 deletions

View File

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