[gnome-commander] Free memory



commit e890bb3797e1baa23c6f37b1d5220a00848de083
Author: Uwe Scholz <u scholz83 gmx de>
Date:   Sun Jan 23 23:12:35 2022 +0100

    Free memory

 src/gnome-cmd-con-remote.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/gnome-cmd-con-remote.cc b/src/gnome-cmd-con-remote.cc
index b7679c6b..87673640 100644
--- a/src/gnome-cmd-con-remote.cc
+++ b/src/gnome-cmd-con-remote.cc
@@ -375,9 +375,10 @@ GnomeCmdConRemote *gnome_cmd_con_remote_new (const gchar *alias, const string &u
 
     con->method = gnome_cmd_con_get_scheme (uri_str.c_str());
 
-    g_free (path);
     g_free (scheme);
     g_free(host);
+    g_free (path);
+    g_free (user);
 
     return gnomeCmdConRemote;
 }


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