From: Jens Axboe Date: Sat, 1 Mar 2008 17:52:49 +0000 (+0100) Subject: Remember to init and exit the smalloc allocator X-Git-Tag: fio-1.20-rc1~14 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=2e5cdb118aeb26cb469a50f746b632676306f698 Remember to init and exit the smalloc allocator Signed-off-by: Jens Axboe --- 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(); } /*