[vlc-commits] sftp: close sftp handle in error path
Petri Hintukainen
git at videolan.org
Thu Mar 12 14:21:24 CET 2015
vlc | branch: master | Petri Hintukainen <phintuka at gmail.com> | Thu Mar 12 14:49:39 2015 +0200| [43dea53f52f49461024942d995356ec4ac790fb8] | committer: Jean-Baptiste Kempf
sftp: close sftp handle in error path
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=43dea53f52f49461024942d995356ec4ac790fb8
---
modules/access/sftp.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/access/sftp.c b/modules/access/sftp.c
index fe25f05..16159a8 100644
--- a/modules/access/sftp.c
+++ b/modules/access/sftp.c
@@ -244,6 +244,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 );
More information about the vlc-commits
mailing list