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 61e910a..0900fea 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);
        }
+#endif
+#if defined(WITH_FUSE) || defined(ENABLE_MULTITHREADED_COMPRESSION)
        pthread_mutex_destroy(&w->fp_tab_mutex);
 #endif