Fix memory leak in GCM by adding gcm_free()

This commit is contained in:
Manuel Pégourié-Gonnard 2013-09-13 13:45:58 +02:00
parent deb7949a22
commit 4fe9200f47
4 changed files with 28 additions and 0 deletions

View file

@ -295,6 +295,7 @@ static void *gcm_ctx_alloc( void )
static void gcm_ctx_free( void *ctx )
{
gcm_free( ctx );
polarssl_free( ctx );
}