Remember to init and exit the smalloc allocator
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/fio.c b/fio.c
index 1046c03..de6132c 100644
--- a/fio.c
+++ b/fio.c
@@ -36,6 +36,7 @@
#include "fio.h"
#include "hash.h"
+#include "smalloc.h"
unsigned long page_mask;
unsigned long page_size;
@@ -1302,6 +1303,8 @@
{
long ps;
+ sinit();
+
/*
* We need locale for number printing, if it isn't set then just
* go with the US format.
diff --git a/init.c b/init.c
index d860179..e53f103 100644
--- 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 @@
threads = NULL;
shmctl(shm_id, IPC_RMID, &sbuf);
}
+
+ scleanup();
}
/*