From dea7d00eafb9cf6cfeade320ab261336ed45e994 Mon Sep 17 00:00:00 2001 From: deraadt Date: Thu, 4 Jul 2002 04:15:33 +0000 Subject: patch memory leaks; grendel@zeitbombe.org --- usr.bin/ssh/ssh-rsa.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'usr.bin/ssh/ssh-rsa.c') diff --git a/usr.bin/ssh/ssh-rsa.c b/usr.bin/ssh/ssh-rsa.c index 782279bad23..c7f5ed0b3a8 100644 --- a/usr.bin/ssh/ssh-rsa.c +++ b/usr.bin/ssh/ssh-rsa.c @@ -23,7 +23,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: ssh-rsa.c,v 1.21 2002/06/23 03:30:17 deraadt Exp $"); +RCSID("$OpenBSD: ssh-rsa.c,v 1.22 2002/07/04 04:15:33 deraadt Exp $"); #include #include @@ -100,6 +100,8 @@ ssh_rsa_sign(Key *key, u_char **sigp, u_int *lenp, *lenp = len; if (sigp != NULL) *sigp = ret; + else + xfree(ret); return 0; } -- cgit v1.2.3-59-g8ed1b