summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/shader_query.cpp
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2015-09-26 13:37:02 -0400
committerIlia Mirkin <[email protected]>2015-09-28 02:38:58 -0400
commit6dd059fefe2c8c8a5337a646ab8772ebad8f811b (patch)
tree393924b345d0409b6be5865c52335967b452a6ee /src/mesa/main/shader_query.cpp
parente413d2fbc4b37eb552ee42940fb792e504233e51 (diff)
mesa: don't leak interface_name
Found by Coverity Signed-off-by: Ilia Mirkin <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/main/shader_query.cpp')
-rw-r--r--src/mesa/main/shader_query.cpp1
1 files changed, 1 insertions, 0 deletions
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;
}