mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2025-10-15 19:25:33 +08:00

I believe if realloc() returns a pointer to a different location, the old location is freed. However, the pointer 'n1' is not freed if realloc fails to obtain a large enough block of memory and returns NULL. (more details on [StackOverflow](http://stackoverflow.com/a/16676964)).