diff options
author | Sander Vrijders <sander.vrijders@ugent.be> | 2017-03-22 15:56:41 +0100 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@ugent.be> | 2017-03-22 15:56:41 +0100 |
commit | f8d633d70f79d75935787c524ab0120159556fa3 (patch) | |
tree | 83ca1ff3efcb887e8986e73ea16a06bf9cad3ec7 /src/ipcpd/normal/graph.c | |
parent | 4057695fe65dd0b8c8604c75d5f60d265f0dbf9a (diff) | |
download | ouroboros-f8d633d70f79d75935787c524ab0120159556fa3.tar.gz ouroboros-f8d633d70f79d75935787c524ab0120159556fa3.zip |
ipcpd: normal: Fix memory leaks
This fixes some memleaks as reported by valgrind.
Diffstat (limited to 'src/ipcpd/normal/graph.c')
-rw-r--r-- | src/ipcpd/normal/graph.c | 2 |
1 files changed, 2 insertions, 0 deletions
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, |