gio-tool: Fix a memory leak when returning command line help

Coverity CID: #1393952
Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
This commit is contained in:
Philip Withnall 2018-07-17 12:13:21 +02:00
parent 7f55c768ce
commit 2c79b357b2

View File

@ -106,6 +106,7 @@ handle_move (int argc, char *argv[], gboolean do_help)
if (do_help) if (do_help)
{ {
show_help (context, NULL); show_help (context, NULL);
g_option_context_free (context);
return 0; return 0;
} }