Commit 6236ffeb authored by Tapani Pälli's avatar Tapani Pälli

intel: fix disasm_info memory leaks

Fixes: 4f82b172 ("i965: Rewrite disassembly annotation code")
Cc: Matt Turner <mattst88@gmail.com>
Signed-off-by: Tapani Pälli's avatarTapani Pälli <tapani.palli@intel.com>
Reviewed-by: Iago Toral's avatarIago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Matt Turner's avatarMatt Turner <mattst88@gmail.com>
parent 04a95584
......@@ -2215,8 +2215,8 @@ fs_generator::generate_code(const cfg_t *cfg, int dispatch_width)
100.0f * (before_size - after_size) / before_size);
dump_assembly(p->store, disasm_info);
ralloc_free(disasm_info);
}
ralloc_free(disasm_info);
assert(validated);
compiler->shader_debug_log(log_data,
......
......@@ -2203,8 +2203,8 @@ generate_code(struct brw_codegen *p,
100.0f * (before_size - after_size) / before_size);
dump_assembly(p->store, disasm_info);
ralloc_free(disasm_info);
}
ralloc_free(disasm_info);
assert(validated);
compiler->shader_debug_log(log_data,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment