forked from wolfSSL/wolfssl
Fixed resource leak in mp_gcd.
This commit is contained in:
@@ -4860,8 +4860,8 @@ int mp_gcd (mp_int * a, mp_int * b, mp_int * c)
|
|||||||
}
|
}
|
||||||
c->sign = MP_ZPOS;
|
c->sign = MP_ZPOS;
|
||||||
res = MP_OKAY;
|
res = MP_OKAY;
|
||||||
LBL_V:mp_clear (&u);
|
LBL_V:mp_clear (&v);
|
||||||
LBL_U:mp_clear (&v);
|
LBL_U:mp_clear (&u);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user