[PATCH] Avoiding memory leak allocated by signature.

krishnaiah bommu krishnaiah.bommu at intel.com
Tue Oct 22 17:49:55 AEDT 2019


Signed-off-by: krishnaiah bommu <krishnaiah.bommu at intel.com>
---
 ssh-keysign.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ssh-keysign.c b/ssh-keysign.c
index 6cfd5b4..68cd9d9 100644
--- a/ssh-keysign.c
+++ b/ssh-keysign.c
@@ -289,5 +289,6 @@ main(int argc, char **argv)
 	if (ssh_msg_send(STDOUT_FILENO, version, b) == -1)
 		fatal("ssh_msg_send failed");
 
+	free(signature);
 	return (0);
 }
-- 
2.7.4



More information about the openssh-unix-dev mailing list