From f8d633d70f79d75935787c524ab0120159556fa3 Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Wed, 22 Mar 2017 15:56:41 +0100 Subject: ipcpd: normal: Fix memory leaks This fixes some memleaks as reported by valgrind. --- src/ipcpd/normal/graph.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ipcpd/normal/graph.c') diff --git a/src/ipcpd/normal/graph.c b/src/ipcpd/normal/graph.c index 85bb3fe2..2a7dbd9a 100644 --- a/src/ipcpd/normal/graph.c +++ b/src/ipcpd/normal/graph.c @@ -167,6 +167,8 @@ void graph_destroy(struct graph * graph) pthread_mutex_unlock(&graph->lock); pthread_mutex_destroy(&graph->lock); + + free(graph); } int graph_add_edge(struct graph * graph, -- cgit v1.2.3