This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository libx2goclient. commit 9abcdb1757caea6956a843e33da2c5acb560f4a7 Author: Mihai Moldovan <ionic@ionic.de> Date: Mon Aug 19 15:08:54 2019 +0200 src/test/sshtest.c: more data freeing. --- src/test/sshtest.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/test/sshtest.c b/src/test/sshtest.c index 41297a4..723292b 100644 --- a/src/test/sshtest.c +++ b/src/test/sshtest.c @@ -62,10 +62,13 @@ int main (int argc, char **argv) { gchar *session_path = NULL; g_object_get (G_OBJECT (net_ssh), "session-path", &session_path, NULL); g_printf ("session-path: %s\n", session_path); + g_free (session_path); + session_path = NULL; g_object_set (G_OBJECT (net_ssh), "socket-spec", ssh_uri, NULL); GSocketAddress *sock_addr = NULL; g_object_get (G_OBJECT (net_ssh), "socket", &sock_addr, NULL); g_printf ("sock_addr: %p\n", sock_addr); + g_clear_object (&sock_addr); /* * Provoke error. @@ -73,9 +76,10 @@ int main (int argc, char **argv) { * This should not work/change the initial state. */ g_object_set (G_OBJECT (net_ssh), "session-path", "/i/don't/exist", NULL); - session_path = NULL; g_object_get (G_OBJECT (net_ssh), "session-path", &session_path, NULL); g_printf ("new session-path: %s\n", session_path); + g_free (session_path); + session_path = NULL; g_printf ("Trying to connect...\n"); gboolean conn_ret = x2goclient_network_ssh_connect (net_ssh); -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/libx2goclient.git