From 4e8325c9679ec0ff0f8834c4dfaa2885958a2f0f Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 25 Aug 2003 14:18:14 +0000 Subject: [PATCH] Fix a couple of blatant memory leaks; thanks to Ruurd Beerstra for pointing at least one of them out. [originally from svn r3421] --- sshbn.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sshbn.c b/sshbn.c index 2d8359e3..d0608a3a 100644 --- a/sshbn.c +++ b/sshbn.c @@ -729,6 +729,7 @@ Bignum bigmuladd(Bignum a, Bignum b, Bignum addend) } ret[0] = maxspot; + sfree(workspace); return ret; } @@ -1009,5 +1010,6 @@ char *bignum_decimal(Bignum x) /* * Done. */ + sfree(workspace); return ret; }