diff --git a/sc2/src/sc2code/libs/memory/w_memlib.c b/sc2/src/sc2code/libs/memory/w_memlib.c index 46ccc2124..4dc04b395 100644 --- a/sc2/src/sc2code/libs/memory/w_memlib.c +++ b/sc2/src/sc2code/libs/memory/w_memlib.c @@ -672,6 +672,9 @@ HCalloc (int size) return (p); } +// BUG: HRealloc() is does not behave like realloc(): +// From the C standard: "If memory for the new object cannot be allocated, +// the old object is not deallocated and its value is unchanged." void * HRealloc (void *p, int size) {