Adds free() calls on the spawns.