Fixes memory leak in the wc_RsaFunction if failure happens when using normal math (not fast math) and RSA_LOW_MEM is not defined.

This commit is contained in:
David Garske
2016-05-04 23:14:59 -07:00
parent 9f0fa7500f
commit 9001036e09

View File

@ -845,7 +845,9 @@ static int wc_RsaFunction(const byte* in, word32 inLen, byte* out,
mp_clear(&tmpa);
mp_clear(&tmpb);
if (ret != 0) return ret;
if (ret != 0) {
goto done;
}
#endif /* RSA_LOW_MEM */
}