wolfSSL: Fix the memory leak of crypto_ec_point_compute_y_sqr()

Local variable "t" needs to be cleared whether "calced" is 0 or 1.

Signed-off-by: 赵军涛 <d2014zjt@163.com>
This commit is contained in:
赵军涛 2022-04-19 17:31:35 +08:00 committed by Jouni Malinen
parent e7dd0fff1d
commit 7302aa7614

View file

@ -1678,9 +1678,9 @@ done:
mp_clear(y2);
os_free(y2);
}
mp_clear(&t);
}
mp_clear(&t);
return (struct crypto_bignum *) y2;
}