[Mesa-dev] [PATCH 1/1] r600, llvm: Don't leak global symbol offsets

Tom Stellard tom at stellard.net
Tue Dec 2 19:33:33 PST 2014


On Tue, Dec 02, 2014 at 02:47:53PM -0500, Jan Vesely wrote:
> Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>

I've pushed this, thanks!

-Tom

> ---
> 
> You were right, this one was leaking too.
> 
>  src/gallium/drivers/r600/r600_llvm.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/gallium/drivers/r600/r600_llvm.c b/src/gallium/drivers/r600/r600_llvm.c
> index 3a3ee3a..a928fb8 100644
> --- a/src/gallium/drivers/r600/r600_llvm.c
> +++ b/src/gallium/drivers/r600/r600_llvm.c
> @@ -888,6 +888,7 @@ unsigned r600_llvm_compile(
>  	FREE(binary.code);
>  	FREE(binary.config);
>  	FREE(binary.rodata);
> +	FREE(binary.global_symbol_offsets);
>  
>  	return r;
>  }
> -- 
> 1.9.3
> 
> _______________________________________________
> 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