First snapshot of FIO for Windows
[fio.git] / mutex.c
diff --git a/mutex.c b/mutex.c
index 88044f3a818753feb374bc0370e545fb2095d248..c1ce2a3e8740de808e70076a141b642646f9087f 100644 (file)
--- a/mutex.c
+++ b/mutex.c
@@ -93,6 +93,9 @@ struct fio_mutex *fio_mutex_init(int value)
                goto err;
        }
 
+       pthread_condattr_destroy(&cond);
+       pthread_mutexattr_destroy(&attr);
+
        return mutex;
 err:
        if (mutex)