summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2018-07-17 12:13:21 +0200
committerPhilip Withnall <philip@tecnocode.co.uk>2018-07-17 12:13:21 +0200
commit2c79b357b245a9691b127aa02cbc9688611490e0 (patch)
tree443e1ac7c06c3ec0625baae6948fa958f9536371
parent7f55c768ce16dac4acdfe4b9270018a5c23d4efa (diff)
downloadglib-2c79b357b245a9691b127aa02cbc9688611490e0.tar.gz
gio-tool: Fix a memory leak when returning command line help
Coverity CID: #1393952 Signed-off-by: Philip Withnall <philip@tecnocode.co.uk>
-rw-r--r--gio/gio-tool-move.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gio/gio-tool-move.c b/gio/gio-tool-move.c
index 89c1ed5a5..5755f59d4 100644
--- a/gio/gio-tool-move.c
+++ b/gio/gio-tool-move.c
@@ -106,6 +106,7 @@ handle_move (int argc, char *argv[], gboolean do_help)
if (do_help)
{
show_help (context, NULL);
+ g_option_context_free (context);
return 0;
}