diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-04-20 03:31:56 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-04-20 18:16:24 +0200 |
commit | 87b056e6af0ccebc6813c54c88b5eb78ac06faf2 (patch) | |
tree | bd2e99065e525a4a7a26d4a37167ba1f1ce25942 /libavformat/rtsp.c | |
parent | a97281699bc7973e91fb22788d7ac40b17e737aa (diff) | |
download | ffmpeg-87b056e6af0ccebc6813c54c88b5eb78ac06faf2.tar.gz |
avformat/rtsp: Don't free uninitialized AVBPrint
Fixes Coverity ID 1462307.
Reviewed-by: Marton Balint <cus@passwd.hu>
Reviewed-by: Ross Nicholson <phunkyfish@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r-- | libavformat/rtsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 49f7644fab..0a6462000d 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -2567,8 +2567,8 @@ static int rtp_read_header(AVFormatContext *s) fail_nobuf: ret = AVERROR(ENOMEM); av_log(s, AV_LOG_ERROR, "rtp_read_header(): not enough buffer space for sdp-headers\n"); -fail: av_bprint_finalize(&sdp, NULL); +fail: avcodec_parameters_free(&par); if (in) ffurl_close(in); |