aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorConnor Abbott <[email protected]>2019-07-08 18:17:30 +0200
committerConnor Abbott <[email protected]>2019-07-09 10:39:37 +0200
commit86968327df2b201ede59d0c8efe008a93ebf7af3 (patch)
treeea4da346d2ab9dd74fc521cb8372a9d1dc2b187a
parent64cd972ffb479d950d8d28a3894ce274abb44c78 (diff)
nir/lower_io_to_temporaries: Fix hash table leak
Fixes: c45f5db527252384395e55fb1149b673ec7b5fa8 ("nir/lower_io_to_temporaries: Handle interpolation intrinsics") Reviewed-by: Timothy Arceri <[email protected]>
-rw-r--r--src/compiler/nir/nir_lower_io_to_temporaries.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_lower_io_to_temporaries.c b/src/compiler/nir/nir_lower_io_to_temporaries.c
index c865c7de10c..f92489b9d51 100644
--- a/src/compiler/nir/nir_lower_io_to_temporaries.c
+++ b/src/compiler/nir/nir_lower_io_to_temporaries.c
@@ -364,4 +364,6 @@ nir_lower_io_to_temporaries(nir_shader *shader, nir_function_impl *entrypoint,
exec_list_append(&shader->globals, &state.old_outputs);
nir_fixup_deref_modes(shader);
+
+ _mesa_hash_table_destroy(state.input_map, NULL);
}