On 12/13/2014 10:30 PM, Vinson Lee wrote:
Fix resource leak defect reported by Coverity.

Signed-off-by: Vinson Lee <v...@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;
  }


Reviewed-by: Brian Paul <bri...@vmware.com>

_______________________________________________
Piglit mailing list
Piglit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to