Commit 3ae9d989 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

ftp: memory leak

(not cherry-picked from commit 2b9e7ac1...)
parent 246951cc
......@@ -639,8 +639,10 @@ static int ftp_SendCommand( vlc_object_t *p_access, access_sys_t *p_sys,
if( net_Printf( p_access, p_sys->fd_cmd, NULL, "%s\r\n", psz_cmd ) < 0 )
{
msg_Err( p_access, "failed to send command" );
free( psz_cmd );
return VLC_EGENERIC;
}
free( psz_cmd );
return VLC_SUCCESS;
}
......
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