From: Icecream95 Date: Wed, 22 Jan 2020 20:33:48 +0000 (+1300) Subject: pan/midgard: Fix a memory leak in the disassembler X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7b525ba02b4e9a691f3f236e626c10bfcf1e0381;p=mesa.git pan/midgard: Fix a memory leak in the disassembler Reviewed-by: Alyssa Rosenzweig Part-of: --- diff --git a/src/panfrost/midgard/disassemble.c b/src/panfrost/midgard/disassemble.c index e92214417c4..1d8e84ef329 100644 --- a/src/panfrost/midgard/disassemble.c +++ b/src/panfrost/midgard/disassemble.c @@ -1550,6 +1550,8 @@ disassemble_midgard(uint8_t *code, size_t size, unsigned gpu_id, gl_shader_stage i += 4 * num_quad_words; } + free(midg_tags); + /* We computed work_count as max_work_registers, so add one to get the * count. If no work registers are written, you still have one work * reported, which is exactly what the hardware expects */