From c487d4eeee4320641267e55b8f93795e41105398 Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Tue, 31 Jan 2023 15:52:46 +0100 Subject: [PATCH] defined why2_realloc --- src/core/lib/utils/memory.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/core/lib/utils/memory.c b/src/core/lib/utils/memory.c index b34bbfa..4e3562f 100644 --- a/src/core/lib/utils/memory.c +++ b/src/core/lib/utils/memory.c @@ -80,6 +80,15 @@ void *why2_calloc(unsigned long element, unsigned long size) return allocated; } +void *why2_realloc(void *pointer, unsigned long size) +{ + void *allocated = realloc(pointer, size); + + push_to_list(allocated); + + return allocated; +} + void why2_free(void *pointer) { //VARIABLES