[Mesa-dev] [PATCH] intel/tools: fix resource leak
Lionel Landwerlin
lionel.g.landwerlin at intel.com
Fri Oct 26 14:20:25 UTC 2018
On 26/10/2018 15:11, asimiklit.work at gmail.com wrote:
> From: Andrii Simiklit <andrii.simiklit at globallogic.com>
>
> Some memory and file descriptors are not freed/closed.
Thanks a lot :
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
>
> Signed-off-by: Andrii Simiklit <andrii.simiklit at globallogic.com>
> ---
> src/intel/tools/error2aub.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/src/intel/tools/error2aub.c b/src/intel/tools/error2aub.c
> index 8a23d5ef1e..451fd8c74a 100644
> --- a/src/intel/tools/error2aub.c
> +++ b/src/intel/tools/error2aub.c
> @@ -326,6 +326,12 @@ main(int argc, char *argv[])
>
> aub_write_exec(&aub, batch_addr, aub_gtt_size(&aub), I915_EXEC_RENDER);
>
> + free(out_filename);
> + free(line);
> + if(err_file) {
> + fclose(err_file);
> + }
> + aub_file_finish(&aub);
> return EXIT_SUCCESS;
> }
>
More information about the mesa-dev
mailing list