summaryrefslogtreecommitdiff
path: root/src/libtls/tls_aead.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libtls/tls_aead.c')
-rw-r--r--src/libtls/tls_aead.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libtls/tls_aead.c b/src/libtls/tls_aead.c
index 1d0779dc0..67cfd3a75 100644
--- a/src/libtls/tls_aead.c
+++ b/src/libtls/tls_aead.c
@@ -82,6 +82,7 @@ METHOD(tls_aead_t, encrypt, bool,
assoc = chunk_from_thing(hdr);
if (!this->aead->encrypt(this->aead, plain, assoc, iv, NULL))
{
+ chunk_free(&encrypted);
return FALSE;
}
chunk_free(data);