forgot to free the atom mutex
[physik/posic.git] / moldyn.c
index ed30815..bcc78c0 100644 (file)
--- a/moldyn.c
+++ b/moldyn.c
@@ -90,6 +90,7 @@ int moldyn_shutdown(t_moldyn *moldyn) {
 #ifdef PTHREADS
        for(i=0;i<moldyn->count;i++)
                pthread_mutex_destroy(&(amutex[i]));
+       free(amutex);
        pthread_mutex_destroy(&emutex);
 #endif