diff options
author | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2018-06-26 15:58:58 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@kit.edu> | 2018-06-26 15:58:58 +0200 |
commit | d53c878fdbcaf0cc4708f64724df90568b445119 (patch) | |
tree | f927b4a4861fe411386abbfdc0049976b6789aad /bin | |
parent | bed3076bc6146ec3ed6ba404655ce0bd06173566 (diff) | |
download | uca-d53c878fdbcaf0cc4708f64724df90568b445119.tar.gz uca-d53c878fdbcaf0cc4708f64724df90568b445119.tar.bz2 uca-d53c878fdbcaf0cc4708f64724df90568b445119.tar.xz uca-d53c878fdbcaf0cc4708f64724df90568b445119.zip |
Fix a few minor leaks
Diffstat (limited to 'bin')
-rw-r--r-- | bin/tools/benchmark.c | 7 | ||||
-rw-r--r-- | bin/tools/grab.c | 1 |
2 files changed, 7 insertions, 1 deletions
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; diff --git a/bin/tools/grab.c b/bin/tools/grab.c index 43367cd..97a5baa 100644 --- a/bin/tools/grab.c +++ b/bin/tools/grab.c @@ -223,6 +223,7 @@ record_frames (UcaCamera *camera, Options *opts) break; } + g_free (fmt_string); elapsed = g_timer_elapsed (total_timer, NULL); g_print ("\nTime total = %3.2f s => %3.2f f/s = %3.2f ms/f = %.4f MB/s\n", |