[Beignet] [PATCH] free build_log when the cl program is released
Guo Yejun
yejun.guo at intel.com
Thu Jul 17 11:38:33 PDT 2014
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
More information about the Beignet
mailing list