From: Tapani Pälli Date: Mon, 20 Nov 2017 08:57:17 +0000 (+0200) Subject: intel: fix disasm_info memory leaks X-Git-Tag: upstream/18.1.0~3859 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6236ffeb837a6eb3d1a13b3df21c9b749ebb4812;p=platform%2Fupstream%2Fmesa.git intel: fix disasm_info memory leaks Fixes: 4f82b1728719 ("i965: Rewrite disassembly annotation code") Cc: Matt Turner Signed-off-by: Tapani Pälli Reviewed-by: Iago Toral Quiroga Reviewed-by: Matt Turner --- diff --git a/src/intel/compiler/brw_fs_generator.cpp b/src/intel/compiler/brw_fs_generator.cpp index 4984fb8..28790c8 100644 --- a/src/intel/compiler/brw_fs_generator.cpp +++ b/src/intel/compiler/brw_fs_generator.cpp @@ -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, diff --git a/src/intel/compiler/brw_vec4_generator.cpp b/src/intel/compiler/brw_vec4_generator.cpp index 0567190..8e11754 100644 --- a/src/intel/compiler/brw_vec4_generator.cpp +++ b/src/intel/compiler/brw_vec4_generator.cpp @@ -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,