mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-31 13:26:21 +00:00
Free GError on command line option parse
This commit is contained in:
@@ -82,6 +82,7 @@ main(int argc, char **argv)
|
|||||||
if (!g_option_context_parse(context, &argc, &argv, &error)) {
|
if (!g_option_context_parse(context, &argc, &argv, &error)) {
|
||||||
g_print("%s\n", error->message);
|
g_print("%s\n", error->message);
|
||||||
g_option_context_free(context);
|
g_option_context_free(context);
|
||||||
|
g_error_free(error);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user