1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-28 20:53:54 +02:00

avformat/avio: fix memory leak in url_find_protocol

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Yong Lei 2016-05-17 13:21:45 -07:00 committed by Michael Niedermayer
parent 2875745d35
commit 7bacf74536

View File

@ -282,6 +282,7 @@ static const struct URLProtocol *url_find_protocol(const char *filename)
return up; return up;
} }
} }
av_freep(&protocols);
return NULL; return NULL;
} }