wimlib_free(): Add missing pthread_mutex_destroy()
[wimlib] / 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);
        }
+#endif
+#if defined(WITH_FUSE) || defined(ENABLE_MULTITHREADED_COMPRESSION)
        pthread_mutex_destroy(&w->fp_tab_mutex);
 #endif