diff options
author | Tapani Pälli <[email protected]> | 2017-11-20 10:57:17 +0200 |
---|---|---|
committer | Tapani Pälli <[email protected]> | 2017-11-21 08:36:43 +0200 |
commit | 6236ffeb837a6eb3d1a13b3df21c9b749ebb4812 (patch) | |
tree | 2f43df8e962db6b4ea0356738847d52f01f2945f /src | |
parent | 04a9558497eabe6369b01ef45d1e25015e9286ba (diff) |
intel: fix disasm_info memory leaks
Fixes: 4f82b1728719 ("i965: Rewrite disassembly annotation code")
Cc: Matt Turner <[email protected]>
Signed-off-by: Tapani Pälli <[email protected]>
Reviewed-by: Iago Toral Quiroga <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/intel/compiler/brw_fs_generator.cpp | 2 | ||||
-rw-r--r-- | src/intel/compiler/brw_vec4_generator.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/intel/compiler/brw_fs_generator.cpp b/src/intel/compiler/brw_fs_generator.cpp index 4984fb83d63..28790c86a64 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 05671904734..8e11754e021 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, |