pan/midgard: Fix a memory leak in the disassembler