From 1f73a65c06d92e7768ff4c4a3831423dcf0f437d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Tue, 9 Jul 2013 10:26:41 +0200 Subject: [PATCH] Fix ommission in pk_free(). --- library/pk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/pk.c b/library/pk.c index ca99fc633..edbbf5037 100644 --- a/library/pk.c +++ b/library/pk.c @@ -66,6 +66,8 @@ void pk_free( pk_context *ctx ) break; } + free( ctx-> data ); + ctx->type = POLARSSL_PK_NONE; ctx->data = NULL; }