diff svr-session.c @ 1041:3fb883a6aa81

Some additional cleanup functions
author Matt Johnston <matt@ucc.asn.au>
date Tue, 24 Feb 2015 22:17:04 +0800
parents 2b4fd440399d
children 2fa71c3b2827 8e0280986710
line wrap: on
line diff
--- a/svr-session.c	Tue Feb 24 22:01:33 2015 +0800
+++ b/svr-session.c	Tue Feb 24 22:17:04 2015 +0800
@@ -83,8 +83,9 @@
 	svr_pubkey_options_cleanup();
 
 	m_free(svr_ses.addrstring);
+	m_free(svr_ses.remotehost);
 	m_free(svr_ses.childpids);
-	m_free(svr_ses.remotehost);
+	svr_ses.childpidsize = 0;
 }
 
 static void