aboutsummaryrefslogtreecommitdiff
path: root/src/reflist.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-10-04 14:58:08 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:38 +0100
commit3b89dcfb84abae739890f55fbdc9ee5f0f73df54 (patch)
tree0c370cf140203b4b7d1bd8f2769772064c26d304 /src/reflist.c
parentfed56895857ec87794abfea4f3a856907b0cca61 (diff)
Destroy mutexes when freeing a RefList
Diffstat (limited to 'src/reflist.c')
-rw-r--r--src/reflist.c1
1 files changed, 1 insertions, 0 deletions
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;
}