wimlib_free(): Add missing pthread_mutex_destroy()
authorEric Biggers <ebiggers3@gmail.com>
Thu, 25 Apr 2013 04:24:18 +0000 (23:24 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Thu, 25 Apr 2013 04:24:18 +0000 (23:24 -0500)
src/wim.c

index 61e910a89c304501f822afd9db87aca62c13efb0..0900fead567803f0e765e76e9e0b7d0bfef87cb7 100644 (file)
--- a/src/wim.c
+++ b/src/wim.c
@@ -657,6 +657,8 @@ wimlib_free(WIMStruct *w)
                                fclose(w->fp_tab[i]);
                FREE(w->fp_tab);
        }
                                fclose(w->fp_tab[i]);
                FREE(w->fp_tab);
        }
+#endif
+#if defined(WITH_FUSE) || defined(ENABLE_MULTITHREADED_COMPRESSION)
        pthread_mutex_destroy(&w->fp_tab_mutex);
 #endif
 
        pthread_mutex_destroy(&w->fp_tab_mutex);
 #endif