Lines Matching full:null

98     while (cur != NULL) {  in debug_chain()
106 while (cur != NULL) { in debug_chain()
136 if (hdr->prev != NULL && hdr->prev == hdr->next) { in verify_header()
143 if (hdr->prev_free != NULL && hdr->prev_free == hdr->next_free) { in verify_header()
157 if (prv == NULL || verify_header(prv) != 0) { in verify_chain()
165 if (heap.first->prev != NULL) { in verify_chain()
168 "first->prev != NULL\n"); in verify_chain()
175 while (cur != NULL) { in verify_chain()
210 if (heap.buf == NULL || heap.first == NULL) { in buffer_alloc_calloc()
211 return NULL; in buffer_alloc_calloc()
217 return NULL; in buffer_alloc_calloc()
219 return NULL; in buffer_alloc_calloc()
229 while (cur != NULL) { in buffer_alloc_calloc()
237 if (cur == NULL) { in buffer_alloc_calloc()
238 return NULL; in buffer_alloc_calloc()
261 if (cur->prev_free != NULL) { in buffer_alloc_calloc()
267 if (cur->next_free != NULL) { in buffer_alloc_calloc()
271 cur->prev_free = NULL; in buffer_alloc_calloc()
272 cur->next_free = NULL; in buffer_alloc_calloc()
304 new->trace = NULL; in buffer_alloc_calloc()
310 if (new->next != NULL) { in buffer_alloc_calloc()
318 if (new->prev_free != NULL) { in buffer_alloc_calloc()
324 if (new->next_free != NULL) { in buffer_alloc_calloc()
331 cur->prev_free = NULL; in buffer_alloc_calloc()
332 cur->next_free = NULL; in buffer_alloc_calloc()
362 memory_header *hdr, *old = NULL; in buffer_alloc_free()
365 if (ptr == NULL || heap.buf == NULL || heap.first == NULL) { in buffer_alloc_free()
401 hdr->trace = NULL; in buffer_alloc_free()
407 if (hdr->prev != NULL && hdr->prev->alloc == 0) { in buffer_alloc_free()
416 if (hdr->next != NULL) { in buffer_alloc_free()
425 if (hdr->next != NULL && hdr->next->alloc == 0) { in buffer_alloc_free()
433 if (hdr->prev_free != NULL || hdr->next_free != NULL) { in buffer_alloc_free()
434 if (hdr->prev_free != NULL) { in buffer_alloc_free()
440 if (hdr->next_free != NULL) { in buffer_alloc_free()
448 if (hdr->prev_free != NULL) { in buffer_alloc_free()
454 if (hdr->next_free != NULL) { in buffer_alloc_free()
458 if (hdr->next != NULL) { in buffer_alloc_free()
468 if (old == NULL) { in buffer_alloc_free()
470 if (heap.first_free != NULL) { in buffer_alloc_free()
503 if (heap.first->next == NULL) { in mbedtls_memory_buffer_alloc_status()
541 return NULL; in buffer_alloc_calloc_mutexed()
545 return NULL; in buffer_alloc_calloc_mutexed()
607 if (p == NULL) { in check_pointer()
714 TEST_ASSERT(mbedtls_calloc(1, 1) == NULL); in mbedtls_memory_buffer_alloc_self_test()
722 TEST_ASSERT(mbedtls_calloc(1, 1) == NULL); in mbedtls_memory_buffer_alloc_self_test()
726 TEST_ASSERT(mbedtls_calloc(1, 17) == NULL); in mbedtls_memory_buffer_alloc_self_test()