From a28d25c44181ded80c80f7ae18ea75ce28e00eec Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Sat, 3 Jul 2021 16:12:55 +0200 Subject: [Crypto] Delete mbedtls ctx in deconstructor. Would cause memory leak when the context was `start`ed but not `finish`ed. --- core/crypto/crypto.h | 1 + 1 file changed, 1 insertion(+) (limited to 'core/crypto') 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 { -- cgit v1.2.3