[glib/wip/sadiq/fix-memory-leak] gapplication: Fix a memory leak




commit 074276cba86be75b8d709a2a857cdcdf745d6177
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date:   Thu Feb 4 18:36:45 2021 +0530

    gapplication: Fix a memory leak

 gio/gapplication.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gio/gapplication.c b/gio/gapplication.c
index 1c560e5e8..3720146af 100644
--- a/gio/gapplication.c
+++ b/gio/gapplication.c
@@ -1091,6 +1091,7 @@ g_application_real_local_command_line (GApplication   *application,
   if (!options)
     {
       g_printerr ("%s\n", error->message);
+      g_error_free (error);
       *exit_status = 1;
       return TRUE;
     }


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