Skip to content

Commit

Permalink
free AEADObject's and HeaderProtectionObject's memory
Browse files Browse the repository at this point in the history
  • Loading branch information
msoxzw authored and jlaine committed Mar 28, 2022
1 parent a826dfd commit 7e59113
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/aioquic/_crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ AEAD_dealloc(AEADObject *self)
{
EVP_CIPHER_CTX_free(self->decrypt_ctx);
EVP_CIPHER_CTX_free(self->encrypt_ctx);
Py_TYPE(self)->tp_free((PyObject *) self);
}

static PyObject*
Expand Down Expand Up @@ -285,6 +286,7 @@ static void
HeaderProtection_dealloc(HeaderProtectionObject *self)
{
EVP_CIPHER_CTX_free(self->ctx);
Py_TYPE(self)->tp_free((PyObject *) self);
}

static int HeaderProtection_mask(HeaderProtectionObject *self, const unsigned char* sample)
Expand Down

0 comments on commit 7e59113

Please sign in to comment.