X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=smalloc.c;h=447d5c55fe3336986c490c068a5f919a100b55cf;hb=205a719eda8bce43609c151cbe812437aa6552de;hp=b460d6573bbc4e081a394a76808a18e5ee705ab7;hpb=85492cb89e2421ae71d92b1c88e75efda3ee1f1b;p=fio.git diff --git a/smalloc.c b/smalloc.c index b460d657..447d5c55 100644 --- a/smalloc.c +++ b/smalloc.c @@ -363,8 +363,12 @@ void sfree(void *ptr) global_read_unlock(); - assert(pool); - sfree_pool(pool, ptr); + if (pool) { + sfree_pool(pool, ptr); + return; + } + + log_err("smalloc: ptr %p not from smalloc pool\n", ptr); } static void *__smalloc_pool(struct pool *pool, size_t size)