[glib: 1/4] gio-tool: Fix a memory leak when returning command line help



commit 2c79b357b245a9691b127aa02cbc9688611490e0
Author: Philip Withnall <philip tecnocode co uk>
Date:   Tue Jul 17 12:13:21 2018 +0200

    gio-tool: Fix a memory leak when returning command line help
    
    Coverity CID: #1393952
    Signed-off-by: Philip Withnall <philip tecnocode co uk>

 gio/gio-tool-move.c | 1 +
 1 file changed, 1 insertion(+)
---
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;
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]