[Piglit] [PATCH] arb_internalformat_query2: Fix memory leak in test_data_clear.
Vinson Lee
vlee at freedesktop.org
Wed Mar 9 03:43:09 UTC 2016
Fixes resource leak defects reported by Coverity.
Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
tests/spec/arb_internalformat_query2/common.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tests/spec/arb_internalformat_query2/common.c b/tests/spec/arb_internalformat_query2/common.c
index 1748d2f093e5..a50a7b7336a0 100644
--- a/tests/spec/arb_internalformat_query2/common.c
+++ b/tests/spec/arb_internalformat_query2/common.c
@@ -92,6 +92,7 @@ test_data_clear(test_data **data)
free(_data->params);
_data->params = NULL;
+ free(_data);
*data = NULL;
}
--
2.5.0
More information about the Piglit
mailing list