From 3b89dcfb84abae739890f55fbdc9ee5f0f73df54 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 4 Oct 2011 14:58:08 +0200 Subject: Destroy mutexes when freeing a RefList --- src/reflist.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/reflist.c b/src/reflist.c index d17dca2f..fc61a7e4 100644 --- a/src/reflist.c +++ b/src/reflist.c @@ -168,6 +168,7 @@ static void recursive_free(Reflection *refl) while ( refl != NULL ) { Reflection *next = refl->next; + pthread_mutex_destroy(&refl->lock); free(refl); refl = next; } -- cgit v1.2.3