[Mesa-dev] [PATCH 2/6] radeon/llvm: Free libelf resources

Tom Stellard tom at stellard.net
Wed Nov 6 10:11:42 PST 2013


On Wed, Nov 06, 2013 at 10:36:51AM -0600, Aaron Watry wrote:
> ---
>  src/gallium/drivers/radeon/radeon_llvm_emit.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/src/gallium/drivers/radeon/radeon_llvm_emit.c b/src/gallium/drivers/radeon/radeon_llvm_emit.c
> index 8bf278b..20b3206 100644
> --- a/src/gallium/drivers/radeon/radeon_llvm_emit.c
> +++ b/src/gallium/drivers/radeon/radeon_llvm_emit.c
> @@ -173,6 +173,9 @@ unsigned radeon_llvm_compile(LLVMModuleRef M, struct radeon_llvm_binary *binary,
>  		}
>  	}
>  
> +    if (elf){
> +        elf_end(elf);
> +    }

The indentation looks wrong here.

>  	LLVMDisposeMemoryBuffer(out_buffer);
>  	LLVMDisposeTargetMachine(tm);
>  	return 0;
> -- 
> 1.8.3.2
> 
> _______________________________________________
> 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