From c523f55f691aeb12b77d1e779707bea43eb242dd Mon Sep 17 00:00:00 2001 From: simon Date: Mon, 25 Aug 2003 14:18:14 +0000 Subject: [PATCH 1/1] Fix a couple of blatant memory leaks; thanks to Ruurd Beerstra for pointing at least one of them out. git-svn-id: svn://svn.tartarus.org/sgt/putty@3421 cda61777-01e9-0310-a592-d414129be87e --- 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; } -- 2.11.0