From b199095ec9e3ec6792d75ebcfda488e381a5aad6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Wed, 18 Feb 2015 09:32:06 +0000 Subject: [PATCH] Finish fixing memleak in ssl_server2 arg parsing Fixes omission in 5c078e1 --- programs/ssl/ssl_server2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/programs/ssl/ssl_server2.c b/programs/ssl/ssl_server2.c index d1b76ac46..30814eb45 100644 --- a/programs/ssl/ssl_server2.c +++ b/programs/ssl/ssl_server2.c @@ -587,7 +587,7 @@ psk_entry *psk_parse( char *psk_string ) while( p <= end ) { if( ( new = polarssl_malloc( sizeof( psk_entry ) ) ) == NULL ) - return( NULL ); + goto error; memset( new, 0, sizeof( psk_entry ) );