summaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorSteven Liu <lq@chinaffmpeg.org>2019-10-22 10:54:36 +0800
committerSteven Liu <lq@chinaffmpeg.org>2019-10-22 10:54:36 +0800
commit0b8956b25c2ca3c4f3f2b3b8d36ed6ab177cdae7 (patch)
tree5b59db3ab45b7b90efc5f9f60137766eeaf7b9a3 /libavformat
parent388e1fc9b5becce208c024c5f675890ab3a9adbe (diff)
downloadffmpeg-streaming-0b8956b25c2ca3c4f3f2b3b8d36ed6ab177cdae7.zip
ffmpeg-streaming-0b8956b25c2ca3c4f3f2b3b8d36ed6ab177cdae7.tar.gz
avformat/mpeg: move the header_str free into end label
fix CID: 1454875 Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/mpeg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index df37692..c33401f 100644
--- a/libavformat/mpeg.c
+++ b/libavformat/mpeg.c
@@ -905,9 +905,9 @@ static int vobsub_read_header(AVFormatContext *s)
}
sub_st->codecpar->extradata_size = header.len;
}
- av_free(header_str);
-
end:
+
+ av_free(header_str);
return ret;
}
OpenPOWER on IntegriCloud