diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2021-07-03 16:12:55 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2021-07-03 16:12:55 +0200 |
commit | a28d25c44181ded80c80f7ae18ea75ce28e00eec (patch) | |
tree | e97559b86ec47b988a9d7c9802399f5588af1865 /core | |
parent | a525e7774006a7439779c7b1bd64ed0f2ccf6385 (diff) |
[Crypto] Delete mbedtls ctx in deconstructor.
Would cause memory leak when the context was `start`ed but not
`finish`ed.
Diffstat (limited to 'core')
-rw-r--r-- | core/crypto/crypto.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/crypto/crypto.h b/core/crypto/crypto.h index a2ccbba58a..a46f42949d 100644 --- a/core/crypto/crypto.h +++ b/core/crypto/crypto.h @@ -82,6 +82,7 @@ public: virtual PackedByteArray finish() = 0; HMACContext() {} + virtual ~HMACContext() {} }; class Crypto : public RefCounted { |