From 2043541f568a6c45efab8ca7429c4ca99a5c225e Mon Sep 17 00:00:00 2001 From: Bruno Windels <274386+bwindels@users.noreply.github.com> Date: Fri, 10 Feb 2023 17:36:14 +0100 Subject: [PATCH] fix missing free in key backup --- src/matrix/e2ee/megolm/keybackup/Curve25519.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/matrix/e2ee/megolm/keybackup/Curve25519.ts b/src/matrix/e2ee/megolm/keybackup/Curve25519.ts index 7d2ebac7..45cacb3f 100644 --- a/src/matrix/e2ee/megolm/keybackup/Curve25519.ts +++ b/src/matrix/e2ee/megolm/keybackup/Curve25519.ts @@ -57,6 +57,7 @@ export class BackupEncryption { encryption.set_recipient_key(pubKey); } catch(err) { decryption.free(); + encryption.free(); throw err; } return new BackupEncryption(encryption, decryption);