[Mesa-dev] [PATCH] mesa: don't leak interface_name
Ilia Mirkin
imirkin at alum.mit.edu
Sat Sep 26 10:39:22 PDT 2015
Found by Coverity
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
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 99d9e10..e020dce 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.4.9
More information about the mesa-dev
mailing list