[gnome-commander/feature/store_tab_connection_as_uri: 3/5] Free memory




commit cf43b160b098a22959da11020fca031046cb43b1
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]