summaryrefslogtreecommitdiff
path: root/tests/dump-boundaries.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dump-boundaries.c')
-rw-r--r--tests/dump-boundaries.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/dump-boundaries.c b/tests/dump-boundaries.c
index 29efc522..ba4c343b 100644
--- a/tests/dump-boundaries.c
+++ b/tests/dump-boundaries.c
@@ -39,8 +39,10 @@ static void fail (const char *format, ...)
str = g_strdup_vprintf (format, args);
va_end (args);
- fprintf (stderr, "Error: %s\n", format);
+ fprintf (stderr, "Error: %s\n", str);
+ g_free (str);
+
exit (1);
}