Fix double free issue 84/140984/1
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 27 Jul 2017 10:05:45 +0000 (19:05 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 27 Jul 2017 10:05:45 +0000 (19:05 +0900)
Change-Id: I0dfcce50b2eb9ff36c6f0413e23b0199e51a7eae
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
tool/widget-mgr.c

index 9a17e95..e92230c 100644 (file)
@@ -223,14 +223,12 @@ static int __parse_args(int argc, char **argv)
 
        if (!g_option_context_parse(context, &argc, &argv, &error)) {
                printf("%s: %s\n", argv[0], error->message);
-               g_option_group_unref(opt_group);
                g_option_context_free(context);
                g_clear_error(&error);
                return -1;
        }
 
        help = g_option_context_get_help(context, TRUE, NULL);
-       g_option_group_unref(opt_group);
        g_option_context_free(context);
 
        return 0;