Changeset 3462
- Timestamp:
- Sep 15, 2020, 2:57:15 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/memalloc.c
r3461 r3462 372 372 if (refs == 0) { 373 373 struct stack_block *top; 374 while ((top = pst->top) != &pst->first) 375 { 376 pst->top = top->prev; 377 assert(pst->top); 378 top->prev = NULL; 379 sh_free(psh, top); 374 while ((top = pst->top) != &pst->first) { 375 pst->top = top->prev; 376 assert(pst->top); 377 top->prev = NULL; 378 sh_free(psh, top); 380 379 } 381 380 pst->nextbyte = NULL; … … 469 468 pst->avail = blocksize - offsetof(pstack_block, first.space); 470 469 pst->topsize = blocksize - offsetof(pstack_block, first.space); 470 pst->strleft = 0; 471 471 pst->top = &pst->first; 472 pst->strleft = 0;473 472 pst->allocations = 0; 474 473 pst->bytesalloced = 0;
Note:
See TracChangeset
for help on using the changeset viewer.