summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugins/pdbox/TLSF-2.4.4/src/tlsf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/plugins/pdbox/TLSF-2.4.4/src/tlsf.c b/apps/plugins/pdbox/TLSF-2.4.4/src/tlsf.c
index 35bdc70290..830184761a 100644
--- a/apps/plugins/pdbox/TLSF-2.4.4/src/tlsf.c
+++ b/apps/plugins/pdbox/TLSF-2.4.4/src/tlsf.c
@@ -861,7 +861,8 @@ void *realloc_ex(void *ptr, size_t new_size, void *mem_pool)
861 } 861 }
862 } 862 }
863 863
864 ptr_aux = malloc_ex(new_size, mem_pool); 864 if (!(ptr_aux = malloc_ex(new_size, mem_pool)))
865 return NULL;
865 866
866 cpsize = ((b->size & BLOCK_SIZE) > new_size) ? new_size : (b->size & BLOCK_SIZE); 867 cpsize = ((b->size & BLOCK_SIZE) > new_size) ? new_size : (b->size & BLOCK_SIZE);
867 868