OSDN Git Service

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 99d9e10..e020dce 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;
 }