mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-05-28 15:24:49 -05:00
Fix a couple of blatant memory leaks; thanks to Ruurd Beerstra for
pointing at least one of them out. [originally from svn r3421]
This commit is contained in:
parent
bfb9b28393
commit
4e8325c967
2
sshbn.c
2
sshbn.c
@ -729,6 +729,7 @@ Bignum bigmuladd(Bignum a, Bignum b, Bignum addend)
|
|||||||
}
|
}
|
||||||
ret[0] = maxspot;
|
ret[0] = maxspot;
|
||||||
|
|
||||||
|
sfree(workspace);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1009,5 +1010,6 @@ char *bignum_decimal(Bignum x)
|
|||||||
/*
|
/*
|
||||||
* Done.
|
* Done.
|
||||||
*/
|
*/
|
||||||
|
sfree(workspace);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user