mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-03-10 00:26:27 +00:00
Cleaned up location of init and free for some programs to prevent memory
leaks on incorrect arguments
This commit is contained in:
@@ -277,8 +277,10 @@ exit:
|
||||
}
|
||||
#endif
|
||||
|
||||
if( server_fd != -1 )
|
||||
net_close( server_fd );
|
||||
|
||||
x509_crt_free( &cacert );
|
||||
net_close( server_fd );
|
||||
ssl_free( &ssl );
|
||||
entropy_free( &entropy );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user