Commit 9c3f5568 authored by Petri Hintukainen's avatar Petri Hintukainen Committed by Jean-Baptiste Kempf

sftp: close sftp handle in error path

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 43dea53f52f49461024942d995356ec4ac790fb8)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent c5dc8f23
......@@ -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 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment