[vlc-devel] [PATCH] sftp: close sftp handle in error path
Petri Hintukainen
phintuka at users.sourceforge.net
Thu Mar 12 13:49:39 CET 2015
From: Petri Hintukainen <phintuka at gmail.com>
---
modules/access/sftp.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/access/sftp.c b/modules/access/sftp.c
index ef30727..28da484 100644
--- a/modules/access/sftp.c
+++ b/modules/access/sftp.c
@@ -245,6 +245,8 @@ static int Open( vlc_object_t* p_this )
return VLC_SUCCESS;
error:
+ if( p_sys->file )
+ libssh2_sftp_close_handle( p_sys->file );
if( p_sys->ssh_session )
libssh2_session_free( p_sys->ssh_session );
free( psz_password );
--
2.1.0
More information about the vlc-devel
mailing list