From 36923a44342c3b07e84baec93a30b22c792f74fc Mon Sep 17 00:00:00 2001 From: hackbard Date: Sun, 19 Oct 2008 22:01:23 +0200 Subject: [PATCH] forgot to free the atom mutex --- moldyn.c | 1 + 1 file changed, 1 insertion(+) diff --git a/moldyn.c b/moldyn.c index ed30815..bcc78c0 100644 --- a/moldyn.c +++ b/moldyn.c @@ -90,6 +90,7 @@ int moldyn_shutdown(t_moldyn *moldyn) { #ifdef PTHREADS for(i=0;icount;i++) pthread_mutex_destroy(&(amutex[i])); + free(amutex); pthread_mutex_destroy(&emutex); #endif -- 2.20.1