]> hackdaworld.org Git - physik/posic.git/commitdiff
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 ed30815a6acb2b0d9cf151f990a18d3579067483..bcc78c011a41a646623a6191ca091f18899ed302 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]));
 #ifdef PTHREADS
        for(i=0;i<moldyn->count;i++)
                pthread_mutex_destroy(&(amutex[i]));
+       free(amutex);
        pthread_mutex_destroy(&emutex);
 #endif
 
        pthread_mutex_destroy(&emutex);
 #endif