Commit 2c0fc58e authored by Rémi Duraffort's avatar Rémi Duraffort

sftp: fix a potential memleak.

parent 3c4fac1e
...@@ -216,15 +216,11 @@ static int Open( vlc_object_t* p_this ) ...@@ -216,15 +216,11 @@ static int Open( vlc_object_t* p_this )
vlc_UrlClean( &url ); vlc_UrlClean( &url );
return VLC_SUCCESS; return VLC_SUCCESS;
error: error:
free( psz_password ); free( psz_password );
free( psz_username ); free( psz_username );
if( p_sys ) vlc_UrlClean( &url );
{ free( p_sys );
vlc_UrlClean( &url );
free( p_sys );
}
return VLC_EGENERIC; return VLC_EGENERIC;
} }
......
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