projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
blktrace: support for non-512b sector sizes
[fio.git]
/
smalloc.c
diff --git
a/smalloc.c
b/smalloc.c
index b460d6573bbc4e081a394a76808a18e5ee705ab7..447d5c55fe3336986c490c068a5f919a100b55cf 100644
(file)
--- 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)