diff options
author | Icecream95 <[email protected]> | 2020-01-23 09:33:48 +1300 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-01-23 20:46:38 +0000 |
commit | 7b525ba02b4e9a691f3f236e626c10bfcf1e0381 (patch) | |
tree | a8e6d9a3abe69e7e939ef837c170036d6418d513 /src/panfrost/midgard | |
parent | fbd9b4ce08fe16e0a0aa5511cbb6d14401e0cd50 (diff) |
pan/midgard: Fix a memory leak in the disassembler
Reviewed-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3525>
Diffstat (limited to 'src/panfrost/midgard')
-rw-r--r-- | src/panfrost/midgard/disassemble.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 */ |