mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-21 18:32:13 +03:00
Ehooks: Assert alloc isn't NULL
This commit is contained in:
parent
e210ccc57e
commit
f2f2084e79
1 changed files with 2 additions and 0 deletions
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
void
|
||||
ehooks_init(ehooks_t *ehooks, extent_hooks_t *extent_hooks, unsigned ind) {
|
||||
/* All other hooks are optional; this one is not. */
|
||||
assert(extent_hooks->alloc != NULL);
|
||||
ehooks->ind = ind;
|
||||
ehooks_set_extent_hooks_ptr(ehooks, extent_hooks);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue