Fixed memory leaks in realloc()
4 files changed