[client] overlay: properly free the graphs before ll free

This commit is contained in:
Geoffrey McRae 2021-07-22 17:47:58 +10:00
parent 515f08d2da
commit 50f7a1a99c

View File

@ -48,6 +48,9 @@ static bool graphs_init(void ** udata, void * params)
static void graphs_free(void * udata)
{
struct OverlayGraph * graph;
while(ll_shift(gs.graphs, (void **)&graph))
free(graph);
ll_free(gs.graphs);
}