From 6dd059fefe2c8c8a5337a646ab8772ebad8f811b Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Sat, 26 Sep 2015 13:37:02 -0400 Subject: [PATCH] mesa: don't leak interface_name Found by Coverity Signed-off-by: Ilia Mirkin Reviewed-by: Timothy Arceri --- src/mesa/main/shader_query.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/main/shader_query.cpp b/src/mesa/main/shader_query.cpp index 99d9e1088d0..e020dce288a 100644 --- a/src/mesa/main/shader_query.cpp +++ b/src/mesa/main/shader_query.cpp @@ -995,6 +995,7 @@ program_resource_top_level_array_stride(struct gl_shader_program *shProg, } } found_top_level_array_size: + free(interface_name); free(var_name); return array_stride; } -- 2.30.2