aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2017-10-18 19:37:30 +0100
committerMark Thompson <sw@jkqxz.net>2017-10-18 20:05:11 +0100
commit41272e112b389e61b875ba2372a64a251f1da9fc (patch)
treeeb58f020ab27c83755091aec5b788bb4e0785a7f /libavcodec
parentd792613badfe7e7ca3552533e691c5015991a98a (diff)
downloadffmpeg-41272e112b389e61b875ba2372a64a251f1da9fc.tar.gz
cbs_h264: Fix memory leak in error case
Fixes CID 1419834.
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/cbs_h2645.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/cbs_h2645.c b/libavcodec/cbs_h2645.c
index 9039e0f6f4..742857bd19 100644
--- a/libavcodec/cbs_h2645.c
+++ b/libavcodec/cbs_h2645.c
@@ -824,6 +824,7 @@ static int cbs_h264_read_nal_unit(CodedBitstreamContext *ctx,
err = cbs_h264_read_sei(ctx, &gbc, sei);
if (err < 0) {
cbs_h264_free_sei(sei);
+ av_free(sei);
return err;
}