Initialize memory after realloc().

Fixes segfault when pruning parse trees.