[X2Go-Commits] [libx2goclient] 06/11: src/x2goclient-network-ssh.c: memory cleanup in x2goclient_network_ssh_connect_parent ().
git-admin at x2go.org
git-admin at x2go.org
Sat Aug 31 23:29:02 CEST 2019
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository libx2goclient.
commit 397a4b1337ae5e7f8bc82f4a4be85dad53447144
Author: Mihai Moldovan <ionic at ionic.de>
Date: Sat Aug 31 20:11:02 2019 +0200
src/x2goclient-network-ssh.c: memory cleanup in x2goclient_network_ssh_connect_parent ().
---
src/x2goclient-network-ssh.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/src/x2goclient-network-ssh.c b/src/x2goclient-network-ssh.c
index b39357a..fa9612c 100644
--- a/src/x2goclient-network-ssh.c
+++ b/src/x2goclient-network-ssh.c
@@ -589,9 +589,22 @@ static gboolean x2goclient_network_ssh_parent_connect (X2GoClientNetwork *parent
ret = FALSE;
}
+ g_free (dirname);
+ dirname = NULL;
+
+ GArray *ssh_cmd = g_array_new (TRUE, TRUE, sizeof (gchar*));
+ g_array_set_clear_func (ssh_cmd, &x2goclient_clear_strings);
+ (void) g_array_append_vals (ssh_cmd, "ssh", 1);
+
if (ret) {
ret = FALSE;
}
+ g_free (session_path);
+ session_path = NULL;
+
+ g_array_unref (ssh_cmd);
+ ssh_cmd = NULL;
+
return (ret);
}
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/libx2goclient.git
More information about the x2go-commits
mailing list