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:
parent
e7dd0fff1d
commit
7302aa7614
1 changed files with 1 additions and 1 deletions
|
@ -1678,9 +1678,9 @@ done:
|
|||
mp_clear(y2);
|
||||
os_free(y2);
|
||||
}
|
||||
mp_clear(&t);
|
||||
}
|
||||
|
||||
mp_clear(&t);
|
||||
return (struct crypto_bignum *) y2;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue