glsl/general_ir_test: Fix leaks.
authorEric Anholt <eric@anholt.net>
Fri, 4 Dec 2020 20:54:46 +0000 (12:54 -0800)
committerMarge 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

index 275cff2..e73b919 100644 (file)
@@ -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);
 }