fixed realloc() usare in core/io.c as spotted by cppcheck