Remember to init and exit the smalloc allocator
[fio.git] / init.c
diff --git a/init.c b/init.c
index d860179df6dcbe98f43f60d5a8ba999609b87824..e53f103f65bf1f8f6659fe51a2b9d97d1cda72c4 100644 (file)
--- a/init.c
+++ b/init.c
@@ -16,6 +16,7 @@
 
 #include "fio.h"
 #include "parse.h"
+#include "smalloc.h"
 
 static char fio_version_string[] = "fio 1.19";
 
@@ -742,6 +743,8 @@ static void free_shm(void)
                threads = NULL;
                shmctl(shm_id, IPC_RMID, &sbuf);
        }
+
+       scleanup();
 }
 
 /*