avformat/rtpproto: free ip filters on open error

Found by OSS-Fuzz.

Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Kacper Michajłow 2024-05-10 04:07:40 +02:00 committed by Michael Niedermayer
parent 8485f7a378
commit 792a9979eb
No known key found for this signature in database
GPG Key ID: B18E8928B3948D64

View File

@ -379,6 +379,7 @@ static int rtp_open(URLContext *h, const char *uri, int flags)
return 0;
fail:
ff_ip_reset_filters(&s->filters);
ffurl_closep(&s->rtp_hd);
ffurl_closep(&s->rtcp_hd);
ffurl_closep(&s->fec_hd);