Fix memory leak issue with WOLFSSL_SMALL_STACK defined and using TI hardware accelerated hashing.

This commit is contained in:
David Garske
2016-11-17 09:24:56 -08:00
parent f275331e44
commit de1ee91863

View File

@@ -146,7 +146,7 @@ static int hashHash(const byte* data, word32 len, byte* hash, word32 algo, word3
}
#ifdef WOLFSSL_SMALL_STACK
XFREE(hash, NULL, DYNAMIC_TYPE_TMP_BUFFER);
XFREE(hash_desc, NULL, DYNAMIC_TYPE_TMP_BUFFER);
#endif
return ret;