[Mesa-dev] [PATCH] mesa: don't leak interface_name

Timothy Arceri t_arceri at yahoo.com.au
Sat Sep 26 14:03:59 PDT 2015



On 27 September 2015 3:39:22 am AEST, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
>Found by Coverity
>
>Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>

Reviewed-by: Timothy Arceri <t_arceri at yahoo.com.au>

>---
> 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
>
>_______________________________________________
>mesa-dev mailing list
>mesa-dev at lists.freedesktop.org
>http://lists.freedesktop.org/mailman/listinfo/mesa-dev



More information about the mesa-dev mailing list