From 50f7a1a99cfc298966390c1a106f39d1f8f3e695 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 22 Jul 2021 17:47:58 +1000 Subject: [PATCH] [client] overlay: properly free the graphs before ll free --- client/src/overlay/graphs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/client/src/overlay/graphs.c b/client/src/overlay/graphs.c index 1d8e3793..25479620 100644 --- a/client/src/overlay/graphs.c +++ b/client/src/overlay/graphs.c @@ -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); }