changeset 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 1aee049681bd
children 00eca37e47e8
files cli-authinteract.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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);
 	}