projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d026e2
)
glsl/general_ir_test: Fix leaks.
author
Eric Anholt
<eric@anholt.net>
Fri, 4 Dec 2020 20:54:46 +0000
(12:54 -0800)
committer
Marge Bot
<eric+marge@anholt.net>
Tue, 15 Dec 2020 19:39:29 +0000
(19:39 +0000)
Needed for meson test with asan enabled.
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7936>
src/compiler/glsl/tests/general_ir_test.cpp
patch
|
blob
|
history
diff --git
a/src/compiler/glsl/tests/general_ir_test.cpp
b/src/compiler/glsl/tests/general_ir_test.cpp
index
275cff2
..
e73b919
100644
(file)
--- a/
src/compiler/glsl/tests/general_ir_test.cpp
+++ b/
src/compiler/glsl/tests/general_ir_test.cpp
@@
-68,6
+68,8
@@
TEST_F(ir_variable_constructor, interface)
EXPECT_NE(name, v->name);
EXPECT_EQ(iface, v->type);
EXPECT_EQ(iface, v->get_interface_type());
+
+ ralloc_free(mem_ctx);
}
TEST_F(ir_variable_constructor, interface_array)
@@
-97,4
+99,6
@@
TEST_F(ir_variable_constructor, interface_array)
EXPECT_NE(name, v->name);
EXPECT_EQ(interface_array, v->type);
EXPECT_EQ(iface, v->get_interface_type());
+
+ ralloc_free(mem_ctx);
}