summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-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 35bdc70..8301847 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)
}
}
- ptr_aux = malloc_ex(new_size, mem_pool);
+ if (!(ptr_aux = malloc_ex(new_size, mem_pool)))
+ return NULL;
cpsize = ((b->size & BLOCK_SIZE) > new_size) ? new_size : (b->size & BLOCK_SIZE);