[Piglit] [PATCH] cl-api-get-device-info: Fix memory leak.
Vinson Lee
vlee at freedesktop.org
Sat Dec 13 21:30:50 PST 2014
Fix resource leak defect reported by Coverity.
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
tests/cl/api/get-device-info.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/cl/api/get-device-info.c b/tests/cl/api/get-device-info.c
index ca13fa1..cdfbb26 100644
--- a/tests/cl/api/get-device-info.c
+++ b/tests/cl/api/get-device-info.c
@@ -162,5 +162,7 @@ piglit_cl_test(const int argc,
piglit_merge_result(&result, PIGLIT_FAIL);
}
+ free(int_value);
+
return result;
}
--
1.9.2
More information about the Piglit
mailing list