From f70fe81a6e027b1a883f8373202285718b11d1f1 Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Mon, 16 Dec 2013 16:43:10 +0100
Subject: [PATCH] Fixed memory leak in benchmark application
---
ChangeLog | 1 +
programs/test/benchmark.c | 2 ++
2 files changed, 3 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 939024307..6c0a5c5a0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -22,6 +22,7 @@ Bugfix
* Missing defines / cases for RSA_PSK key exchange
* crypt_and_hash app checks MAC before final decryption
* Potential memory leak in ssl_ticket_keys_init()
+ * Memory leak in benchmark application
= PolarSSL 1.3.2 released on 2013-11-04
Features
diff --git a/programs/test/benchmark.c b/programs/test/benchmark.c
index 34219c5f3..f91a2d412 100644
--- a/programs/test/benchmark.c
+++ b/programs/test/benchmark.c
@@ -298,6 +298,8 @@ int main( int argc, char *argv[] )
TIME_AND_TSC( title,
gcm_crypt_and_tag( &gcm, GCM_ENCRYPT, BUFSIZE, tmp,
12, NULL, 0, buf, buf, 16, tmp ) );
+
+ gcm_free( &gcm );
}
}
#endif