summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/tests
diff options
context:
space:
mode:
authorBartosz Tomczyk <[email protected]>2017-04-03 19:39:19 +0200
committerTimothy Arceri <[email protected]>2017-04-04 09:22:29 +1000
commitbcb63ee63e0a8bec837ee3712e1d306409455a4a (patch)
tree54ba8c62bf404fe17bbfceb7fc6d7067d87550f5 /src/compiler/glsl/tests
parenta4c4efad89eceb26cf82f4643ce6a4eb656072a6 (diff)
glsl: Fix blob memory leak
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/compiler/glsl/tests')
-rw-r--r--src/compiler/glsl/tests/blob_test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/compiler/glsl/tests/blob_test.c b/src/compiler/glsl/tests/blob_test.c
index 01b5ef0b2f0..df0e91af353 100644
--- a/src/compiler/glsl/tests/blob_test.c
+++ b/src/compiler/glsl/tests/blob_test.c
@@ -184,7 +184,7 @@ test_write_and_read_functions (void)
"read_consumes_all_bytes");
expect_equal(false, reader.overrun, "read_does_not_overrun");
- free(blob);
+ blob_destroy(blob);
}
/* Test that data values are written and read with proper alignment. */
@@ -242,7 +242,7 @@ test_alignment(void)
"aligned read of intptr_t");
}
- free(blob);
+ blob_destroy(blob);
}
/* Test that we detect overrun. */
@@ -264,7 +264,7 @@ test_overrun(void)
expect_equal(0, blob_read_uint32(&reader), "read at overrun");
expect_equal(true, reader.overrun, "overrun flag set");
- free(blob);
+ blob_destroy(blob);
}
/* Test that we can read and write some large objects, (exercising the code in
@@ -308,7 +308,7 @@ test_big_objects(void)
expect_equal(false, reader.overrun,
"overrun flag not set reading large objects");
- free(blob);
+ blob_destroy(blob);
ralloc_free(ctx);
}