mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-04 02:50:19 +01:00
[test] Fix memleak from fallback-resolution.
The test-name was being recreated for every pass, but was never freed.
This commit is contained in:
parent
a9697e5fb0
commit
0ebbcd671c
1 changed files with 2 additions and 0 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue