intel: fix disasm_info memory leaks
Fixes: 4f82b17287
("i965: Rewrite disassembly annotation code")
Cc: Matt Turner <mattst88@gmail.com>
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
04a9558497
commit
6236ffeb83
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue