VS2010 build: fix a segfault from a removed realloc.