1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

Fix memory leak in bignum_from_decimal

Intermediate result values were not freed.
This commit is contained in:
Tim Kosse 2017-01-23 18:55:20 +01:00 committed by Simon Tatham
parent e882b49051
commit 1bfde9dc52

View File

@ -1461,6 +1461,7 @@ Bignum bignum_from_decimal(const char *decimal)
tmp = bigmul(result, Ten);
tmp2 = bignum_from_long(*decimal - '0');
freebn(result);
result = bigadd(tmp, tmp2);
freebn(tmp);
freebn(tmp2);