mesa: don't leak interface_name
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 26 Sep 2015 17:37:02 +0000 (13:37 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Mon, 28 Sep 2015 06:38:58 +0000 (02:38 -0400)
Found by Coverity

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Timothy Arceri <t_arceri@yahoo.com.au>
src/mesa/main/shader_query.cpp

index 99d9e1088d01699a0f09eb77f2e3ef7d8a604db5..e020dce288a3feea7c93dad40a4f806b32dd1b9c 100644 (file)
@@ -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;
 }