[gnome-builder] terminal-util: fix a memory leak



commit 26abd7e31fd58495fb6fd225155344c955e70baf
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date:   Mon Sep 30 23:29:59 2019 +0530

    terminal-util: fix a memory leak

 src/libide/terminal/ide-terminal-util.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libide/terminal/ide-terminal-util.c b/src/libide/terminal/ide-terminal-util.c
index 8f53aad66..1f2370eed 100644
--- a/src/libide/terminal/ide-terminal-util.c
+++ b/src/libide/terminal/ide-terminal-util.c
@@ -103,7 +103,7 @@ _ide_guess_shell (void)
   g_autofree gchar *command = NULL;
   g_autoptr(GError) error = NULL;
   g_auto(GStrv) argv = NULL;
-  const gchar *shell;
+  g_autofree gchar *shell = NULL;
 
   /*
    * First ask VTE to guess, so we can use that while we discover


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