diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2008-12-09 14:30:58 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2008-12-12 11:11:48 +0000 |
commit | 0ebbcd671c362d98a60214872fa48aee1e42dde1 (patch) | |
tree | 7ebb3d34735564469679de04977b365568c16f5b /test/fallback-resolution.c | |
parent | a9697e5fb04d045fe7aaf0cee80c41eb9d09e1c1 (diff) | |
download | cairo-0ebbcd671c362d98a60214872fa48aee1e42dde1.tar.gz |
[test] Fix memleak from fallback-resolution.
The test-name was being recreated for every pass, but was never freed.
Diffstat (limited to 'test/fallback-resolution.c')
-rw-r--r-- | test/fallback-resolution.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/fallback-resolution.c b/test/fallback-resolution.c index c8b994498..c27ab9057 100644 --- a/test/fallback-resolution.c +++ b/test/fallback-resolution.c @@ -383,6 +383,7 @@ preamble (cairo_test_context_t *ctx) target->name, format); free (base_name); + free (test_name); ret = CAIRO_TEST_FAILURE; continue; } @@ -451,6 +452,7 @@ preamble (cairo_test_context_t *ctx) target->cleanup (closure); free (base_name); + free (test_name); if (pass) { printf ("PASS\n"); |