diff options
| author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2026-05-22 14:08:07 +0000 |
|---|---|---|
| committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2026-05-22 14:08:07 +0000 |
| commit | 4dd0a17edce60370304a45f2c40251e09e193bd6 (patch) | |
| tree | f0cb0f27a9e83b56f8383265413d035ab01926c6 /util/alloc.c | |
| parent | ec5b94f552d7cb2a9d456c67e9941bcf5e3698bf (diff) | |
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; |
