summaryrefslogtreecommitdiff
path: root/modules/mbedtls/crypto_mbedtls.h
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-07-03 16:12:55 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2021-07-03 16:12:55 +0200
commita28d25c44181ded80c80f7ae18ea75ce28e00eec (patch)
treee97559b86ec47b988a9d7c9802399f5588af1865 /modules/mbedtls/crypto_mbedtls.h
parenta525e7774006a7439779c7b1bd64ed0f2ccf6385 (diff)
[Crypto] Delete mbedtls ctx in deconstructor.
Would cause memory leak when the context was `start`ed but not `finish`ed.
Diffstat (limited to 'modules/mbedtls/crypto_mbedtls.h')
-rw-r--r--modules/mbedtls/crypto_mbedtls.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/mbedtls/crypto_mbedtls.h b/modules/mbedtls/crypto_mbedtls.h
index 5ced4d136c..afa1ea7a64 100644
--- a/modules/mbedtls/crypto_mbedtls.h
+++ b/modules/mbedtls/crypto_mbedtls.h
@@ -119,6 +119,7 @@ public:
virtual PackedByteArray finish();
HMACContextMbedTLS() {}
+ ~HMACContextMbedTLS();
};
class CryptoMbedTLS : public Crypto {