[Crypto] Delete mbedtls ctx in deconstructor.

Would cause memory leak when the context was `start`ed but not
`finish`ed.
This commit is contained in:
Fabio Alessandrelli
2021-07-03 16:12:55 +02:00
parent a525e77740
commit a28d25c441
3 changed files with 9 additions and 0 deletions

View File

@@ -119,6 +119,7 @@ public:
virtual PackedByteArray finish();
HMACContextMbedTLS() {}
~HMACContextMbedTLS();
};
class CryptoMbedTLS : public Crypto {