summaryrefslogtreecommitdiff
path: root/test/pdf-mime-data.c
diff options
context:
space:
mode:
authorBryce Harrington <bryce@osg.samsung.com>2015-12-09 11:30:34 -0800
committerBryce Harrington <bryce@osg.samsung.com>2015-12-09 11:30:34 -0800
commit0986ae4dee2a903dc16bba289477a38dff36a87b (patch)
treec164a8d83bce3ea97b70407e6600027eca9af468 /test/pdf-mime-data.c
parentad99e1b9d80a9dc8d185f38347d64e1db762523c (diff)
downloadcairo-0986ae4dee2a903dc16bba289477a38dff36a87b.tar.gz
test: Fix use after frees
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=93152
Diffstat (limited to 'test/pdf-mime-data.c')
-rw-r--r--test/pdf-mime-data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pdf-mime-data.c b/test/pdf-mime-data.c
index b49a1d18d..69fafa145 100644
--- a/test/pdf-mime-data.c
+++ b/test/pdf-mime-data.c
@@ -140,9 +140,9 @@ preamble (cairo_test_context_t *ctx)
cairo_surface_destroy (image);
if (status) {
- free (filename);
cairo_test_log (ctx, "Failed to create pdf surface for file %s: %s\n",
filename, cairo_status_to_string (status));
+ free (filename);
return CAIRO_TEST_FAILURE;
}