[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:
parent
a525e77740
commit
a28d25c441
3 changed files with 9 additions and 0 deletions
|
|
@ -82,6 +82,7 @@ public:
|
|||
virtual PackedByteArray finish() = 0;
|
||||
|
||||
HMACContext() {}
|
||||
virtual ~HMACContext() {}
|
||||
};
|
||||
|
||||
class Crypto : public RefCounted {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue