Commit 0b8956b2 authored by Steven Liu's avatar Steven Liu

avformat/mpeg: move the header_str free into end label

fix CID: 1454875
Signed-off-by: 's avatarSteven Liu <lq@chinaffmpeg.org>
parent 388e1fc9
...@@ -905,9 +905,9 @@ static int vobsub_read_header(AVFormatContext *s) ...@@ -905,9 +905,9 @@ static int vobsub_read_header(AVFormatContext *s)
} }
sub_st->codecpar->extradata_size = header.len; sub_st->codecpar->extradata_size = header.len;
} }
av_free(header_str);
end: end:
av_free(header_str);
return ret; return ret;
} }
......
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