From 4505ed3c900367095b69713067779838ae5e2264 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Thu, 19 Jun 2014 20:56:52 +0200 Subject: [PATCH] Fix missing free() with recent ssl_server2 options --- programs/ssl/ssl_server2.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/programs/ssl/ssl_server2.c b/programs/ssl/ssl_server2.c index 0a1e3eab9..0dc516e1b 100644 --- a/programs/ssl/ssl_server2.c +++ b/programs/ssl/ssl_server2.c @@ -1637,6 +1637,12 @@ exit: #if defined(POLARSSL_SNI) sni_free( sni_info ); #endif +#if defined(POLARSSL_KEY_EXCHANGE__SOME__PSK_ENABLED) + psk_free( psk_info ); +#endif +#if defined(POLARSSL_DHM_C) && defined(POLARSSL_FS_IO) + dhm_free( &dhm ); +#endif ssl_free( &ssl ); entropy_free( &entropy );