[Piglit] [PATCH 1/4] arb_shader_image_load_store/indexing: Plug memory leak.

Francisco Jerez currojerez at riseup.net
Tue May 12 05:39:11 PDT 2015


---
 tests/spec/arb_shader_image_load_store/indexing.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/spec/arb_shader_image_load_store/indexing.c b/tests/spec/arb_shader_image_load_store/indexing.c
index ead0866..cab7d3f 100644
--- a/tests/spec/arb_shader_image_load_store/indexing.c
+++ b/tests/spec/arb_shader_image_load_store/indexing.c
@@ -75,6 +75,7 @@ init_images(const struct image_info img, GLuint prog)
 
                 asprintf(&name, "imgs[%d]", unit);
                 set_uniform_int(prog, name, unit);
+                free(name);
         }
 
         return true;
-- 
2.3.5



More information about the Piglit mailing list