about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-06-23 21:17:07 +0100
committerJames Booth <boothj5@gmail.com>2014-06-23 21:17:07 +0100
commit98bc1abbe57214b6d78de94323b1433ab5fc753d (patch)
treecd6142f00b063582df7c1d65e5c66590146e79be
parentd668d15081f3d38d618457cb9016100acc6877dc (diff)
downloadprofani-tty-98bc1abbe57214b6d78de94323b1433ab5fc753d.tar.gz
Free GError on command line option parse
-rw-r--r--src/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 5c95a994..140df545 100644
--- a/src/main.c
+++ b/src/main.c
@@ -82,6 +82,7 @@ main(int argc, char **argv)
     if (!g_option_context_parse(context, &argc, &argv, &error)) {
         g_print("%s\n", error->message);
         g_option_context_free(context);
+        g_error_free(error);
         return 1;
     }