diff options
Diffstat (limited to 'util/alloc.c')
| -rw-r--r-- | util/alloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/alloc.c b/util/alloc.c index 9a99246f589c..e4e1aeb4dcba 100644 --- a/util/alloc.c +++ b/util/alloc.c @@ -328,7 +328,7 @@ size_t alloc_get_mem(struct alloc_cache* alloc) struct regional* alloc_reg_obtain(struct alloc_cache* alloc) { - if(alloc->num_reg_blocks > 0) { + if(alloc->num_reg_blocks > 0 && alloc->reg_list) { struct regional* r = alloc->reg_list; alloc->reg_list = (struct regional*)r->next; r->next = NULL; |
