[vlc-commits] sftp: close sftp handle in error path
Petri Hintukainen
git at videolan.org
Thu Mar 12 18:58:16 CET 2015
vlc/vlc-2.2 | branch: master | Petri Hintukainen <phintuka at gmail.com> | Thu Mar 12 14:49:39 2015 +0200| [9c3f5568074526cc4dda245310f4faccb4f44496] | committer: Jean-Baptiste Kempf
sftp: close sftp handle in error path
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit 43dea53f52f49461024942d995356ec4ac790fb8)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=9c3f5568074526cc4dda245310f4faccb4f44496
---
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