From 2e5cdb118aeb26cb469a50f746b632676306f698 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Sat, 1 Mar 2008 18:52:49 +0100 Subject: [PATCH 1/1] Remember to init and exit the smalloc allocator Signed-off-by: Jens Axboe --- fio.c | 3 +++ init.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/fio.c b/fio.c index 1046c036..de6132c0 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 @@ int main(int argc, char *argv[]) { 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 d860179d..e53f103f 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 @@ static void free_shm(void) threads = NULL; shmctl(shm_id, IPC_RMID, &sbuf); } + + scleanup(); } /* -- 2.25.1