Commit 43dea53f 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>
parent 4f486e17
......@@ -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