From: hackbard Date: Sun, 19 Oct 2008 20:01:23 +0000 (+0200) Subject: forgot to free the atom mutex X-Git-Url: https://hackdaworld.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36923a44342c3b07e84baec93a30b22c792f74fc;p=physik%2Fposic.git forgot to free the atom mutex --- 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