Free Null Pointer at data-stack.c:167 |
No properties have been set. edit properties |
Jump to warning location ↓ | warning details... |
| |
free_blocks (/home/sate/Testcases/c/cve/dovecot-1.2.0/src/lib/data-stack.c)![]() | ||||||
![]() | ||||||
153 | static void free_blocks(struct stack_block *block) | |||||
154 | { | |||||
155 | struct stack_block *next; | |||||
156 | ||||||
157 | /* free all the blocks, except if any of them is bigger than | |||||
158 | unused_block, replace it */ | |||||
159 | while (block != NULL) { | |||||
160 | next = block->next; | |||||
161 | ||||||
162 | if (clean_after_pop) | |||||
163 | memset(STACK_BLOCK_DATA(block), CLEAR_CHR, block->size); | |||||
164 | ||||||
165 | if (unused_block == NULL || block->size > unused_block->size) { | |||||
166 | #ifndef USE_GC | |||||
167 | free(unused_block);
| |||||
![]() |