summaryrefslogtreecommitdiffstats
path: root/test/benchmark.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/benchmark.c')
-rw-r--r--test/benchmark.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/benchmark.c b/test/benchmark.c
index 7e66405..0b4f6f8 100644
--- a/test/benchmark.c
+++ b/test/benchmark.c
@@ -76,6 +76,7 @@ log_handler (const gchar *log_domain, GLogLevelFlags log_level, const gchar *mes
g_io_channel_write_chars (channel, new_message, strlen (new_message), &n_written, &error);
g_assert_no_error (error);
+ g_free (new_message);
#else
g_io_channel_write_chars (channel, message, strlen (message), &n_written, &error);
g_assert_no_error (error);
@@ -83,8 +84,6 @@ log_handler (const gchar *log_domain, GLogLevelFlags log_level, const gchar *mes
g_io_channel_flush (channel, &error);
g_assert_no_error (error);
-
- g_free (new_message);
}
static void