diff svr-authpubkeyoptions.c @ 1598:252b406d0e9a

avoid leak of pubkey_options
author Matt Johnston <matt@ucc.asn.au>
date Tue, 06 Mar 2018 22:18:20 +0800
parents 2d450c1056e3
children e37f98ea4f24
line wrap: on
line diff
--- a/svr-authpubkeyoptions.c	Tue Mar 06 22:02:19 2018 +0800
+++ b/svr-authpubkeyoptions.c	Tue Mar 06 22:18:20 2018 +0800
@@ -113,7 +113,6 @@
 			m_free(ses.authstate.pubkey_options->forced_command);
 		}
 		m_free(ses.authstate.pubkey_options);
-		ses.authstate.pubkey_options = NULL;
 	}
 }