From 41272e112b389e61b875ba2372a64a251f1da9fc Mon Sep 17 00:00:00 2001 From: Mark Thompson Date: Wed, 18 Oct 2017 19:37:30 +0100 Subject: [PATCH] cbs_h264: Fix memory leak in error case Fixes CID 1419834. --- libavcodec/cbs_h2645.c | 1 + 1 file changed, 1 insertion(+) 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; }