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