1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-11-23 21:54:53 +02:00

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

View File

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