diff cli-authinteract.c @ 613:8cd04e707171

Fix memory leak found by Klocwork
author Matt Johnston <matt@ucc.asn.au>
date Thu, 07 Apr 2011 12:34:44 +0000
parents a24139ba08c8
children c45d65392c1a
line wrap: on
line diff
--- a/cli-authinteract.c	Thu Apr 07 12:30:20 2011 +0000
+++ b/cli-authinteract.c	Thu Apr 07 12:34:44 2011 +0000
@@ -131,6 +131,7 @@
 		response_len = strlen(response);
 		buf_putstring(ses.writepayload, response, response_len);
 		m_burn(response, response_len);
+		m_free(prompt);
 		m_free(response);
 	}