Commit 415696ae authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Clarify code (FALSE CID#244)

parent 636a434c
......@@ -931,12 +931,13 @@ static void RtspClientDel( vod_media_t *p_media, rtsp_client_t *p_rtsp )
msg_Dbg( p_media->p_vod, "closing session: %s, connections: %d",
p_rtsp->psz_session, p_media->p_vod->p_sys->i_throttle_users );
while( p_rtsp->i_es-- )
while( p_rtsp->i_es )
{
p_rtsp->i_es--;
free( p_rtsp->es[p_rtsp->i_es]->psz_ip );
free( p_rtsp->es[p_rtsp->i_es] );
if( !p_rtsp->i_es ) free( p_rtsp->es );
}
free( p_rtsp->es );
TAB_REMOVE( p_media->i_rtsp, p_media->rtsp, p_rtsp );
......
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