srt: Fix missing srt_cleanup on error path

(cherry picked from commit 52e3f716bc) (rebased)
rebased:
* 3.0 is freeing psz_host

Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
This commit is contained in:
Zhao Zhili 2021-08-30 00:35:43 +08:00 committed by Hugo Beauzée-Luyssen
parent 2534aa80b5
commit e010ae8e47
1 changed files with 1 additions and 0 deletions

View File

@ -399,6 +399,7 @@ failed:
if ( p_sys->sock != -1 ) srt_close( p_sys->sock );
if ( p_sys->i_poll_id != -1 ) srt_epoll_release( p_sys->i_poll_id );
srt_cleanup();
free( p_sys->psz_host );