Commit 87b056e6 authored by Andreas Rheinhardt's avatar Andreas Rheinhardt

avformat/rtsp: Don't free uninitialized AVBPrint

Fixes Coverity ID 1462307.
Reviewed-by: 's avatarMarton Balint <cus@passwd.hu>
Reviewed-by: 's avatarRoss Nicholson <phunkyfish@gmail.com>
Signed-off-by: 's avatarAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
parent a9728169
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment