[Piglit] [PATCH] cl-api-create-sampler: Fix memory leak.
Vinson Lee
vlee at freedesktop.org
Fri Feb 6 18:55:47 PST 2015
Fix resource leak defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
tests/cl/api/create-sampler.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/cl/api/create-sampler.c b/tests/cl/api/create-sampler.c
index 99423a3..dcdef05 100644
--- a/tests/cl/api/create-sampler.c
+++ b/tests/cl/api/create-sampler.c
@@ -47,6 +47,7 @@ static bool context_has_image_support(const piglit_cl_context ctx)
free(image_support);
return true;
}
+ free(image_support);
}
return false;
}
--
2.1.0
More information about the Piglit
mailing list