forgot to free the atom mutex
authorhackbard <hackbard@sage.physik.uni-augsburg.de>
Sun, 19 Oct 2008 20:01:23 +0000 (22:01 +0200)
committerhackbard <hackbard@sage.physik.uni-augsburg.de>
Sun, 19 Oct 2008 20:01:23 +0000 (22:01 +0200)
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