Fixed resource leak in mp_gcd.

This commit is contained in:
Martin Kinčl
2019-05-17 18:38:19 +02:00
parent 797dae9d74
commit c85eae1322

View File

@ -4860,8 +4860,8 @@ int mp_gcd (mp_int * a, mp_int * b, mp_int * c)
}
c->sign = MP_ZPOS;
res = MP_OKAY;
LBL_V:mp_clear (&u);
LBL_U:mp_clear (&v);
LBL_V:mp_clear (&v);
LBL_U:mp_clear (&u);
return res;
}