[Beignet] [PATCH] free build_log when the cl program is released
Zhigang Gong
zhigang.gong at linux.intel.com
Thu Jul 17 18:44:04 PDT 2014
Good catch, will push latter, thanks.
On Fri, Jul 18, 2014 at 02:38:33AM +0800, Guo Yejun wrote:
> Signed-off-by: Guo Yejun <yejun.guo at intel.com>
> ---
> src/cl_program.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/src/cl_program.c b/src/cl_program.c
> index 3fc2212..7d33f2a 100644
> --- a/src/cl_program.c
> +++ b/src/cl_program.c
> @@ -76,6 +76,11 @@ cl_program_delete(cl_program p)
> p->build_opts = NULL;
> }
>
> + if (p->build_log) {
> + free(p->build_log);
> + p->build_log = NULL;
> + }
> +
> /* Remove it from the list */
> assert(p->ctx);
> pthread_mutex_lock(&p->ctx->program_lock);
> --
> 1.8.3.2
>
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/beignet
More information about the Beignet
mailing list