From d53c878fdbcaf0cc4708f64724df90568b445119 Mon Sep 17 00:00:00 2001 From: Matthias Vogelgesang Date: Tue, 26 Jun 2018 15:58:58 +0200 Subject: Fix a few minor leaks --- bin/tools/benchmark.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bin/tools/benchmark.c') diff --git a/bin/tools/benchmark.c b/bin/tools/benchmark.c index f6d7d7d..f42e841 100644 --- a/bin/tools/benchmark.c +++ b/bin/tools/benchmark.c @@ -344,7 +344,11 @@ main (int argc, char *argv[]) } if (argc < 2) { - g_print ("%s\n", g_option_context_get_help (context, TRUE, NULL)); + gchar *help; + + help = g_option_context_get_help (context, TRUE, NULL); + g_print ("%s\n", help); + g_free (help); goto cleanup_manager; } @@ -366,6 +370,7 @@ main (int argc, char *argv[]) g_object_unref (camera); cleanup_manager: + g_option_context_free (context); g_object_unref (manager); return 0; -- cgit v1.2.3