[ELF] Fix memory leak by deleting BumpPtr allocated objects.