summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2015-08-17 21:34:48 -0700
committerVinson Lee <vlee@freedesktop.org>2015-08-29 19:04:52 -0700
commit72273928c8d8c00c2e4d88e0a17c2096208b5ff9 (patch)
tree6557db979abcbe3c630720130de6ab0672e45943
parent59d7066d09add3d1a4d13900971c99e42e9b3d7c (diff)
cl-api-get-kernel-work-group-info: Fix memory leak.
Fix resource leak defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Serge Martin (EdB) <edb+piglit@sigluy.net>
-rw-r--r--tests/cl/api/get-kernel-work-group-info.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/cl/api/get-kernel-work-group-info.c b/tests/cl/api/get-kernel-work-group-info.c
index 5942e1579..4a393c3b2 100644
--- a/tests/cl/api/get-kernel-work-group-info.c
+++ b/tests/cl/api/get-kernel-work-group-info.c
@@ -94,6 +94,7 @@ piglit_cl_test(const int argc,
piglit_cl_get_device_info(env->device_id, CL_DEVICE_TYPE);
if (*dev_type_ptr != CL_DEVICE_TYPE_CUSTOM)
success_code = CL_INVALID_VALUE;
+ free(dev_type_ptr);
}
#endif