Fix resource leak defect reported by Coverity.
Signed-off-by: Vinson Lee <[email protected]>
---
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
_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit