vlc | branch: master | Petri Hintukainen <[email protected]> | 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 <[email protected]> > 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 ); _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
