mescc: Bugfix for realloc.