mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-10-30 04:23:34 +00:00
Fix potential resource leak in sslserver2 example
This commit is contained in:
@@ -721,6 +721,7 @@ static int nss_keylog_export( void *p_expkey,
|
|||||||
if( fwrite( nss_keylog_line, 1, len, f ) != len )
|
if( fwrite( nss_keylog_line, 1, len, f ) != len )
|
||||||
{
|
{
|
||||||
ret = -1;
|
ret = -1;
|
||||||
|
fclose( f );
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user