Fix a memory leak in dump utility.