Re: [Piglit] [PATCH] cl-api-enqueue-fill-image: Fix memory leaks.

2015-11-22 Thread Serge Martin
I think we can free(image_support): image_suppot = NULL; right after the test if (!*image_support) { fprintf(stderr, "No image support\n"); free(image_support); return PIGLIT_SKIP; } that would avoid the need to add it in every

[Piglit] [PATCH] cl-api-enqueue-fill-image: Fix memory leaks.

2015-11-16 Thread Vinson Lee
Fixes Coverity "resource leak" defects. Signed-off-by: Vinson Lee --- tests/cl/api/enqueue-fill-image.c | 4 1 file changed, 4 insertions(+) diff --git a/tests/cl/api/enqueue-fill-image.c b/tests/cl/api/enqueue-fill-image.c index ebcfba4..994ccb4 100644 ---