diff options
author | Jacob Trimble | 2018-04-19 09:35:22 -0700 |
---|---|---|
committer | Michael Niedermayer | 2018-04-19 21:49:47 +0200 |
commit | 606c5c7f3ad1d289ef745b9053024ad318646c7e (patch) | |
tree | 806d4e5360f40403101436f99f13d6e55269b146 | |
parent | fbfee6adea6166ad87ef46124095abbf079f7bc3 (diff) |
avformat/mov: Fix memory leak in encryption info.
Signed-off-by: Jacob Trimble <modmaker@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavformat/mov.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index fc512b8d72..4eda48d617 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -5833,6 +5833,7 @@ static int mov_read_sample_encryption_info(MOVContext *c, AVIOContext *pb, MOVSt if (use_subsamples) { subsample_count = avio_rb16(pb); + av_free((*sample)->subsamples); (*sample)->subsamples = av_mallocz_array(subsample_count, sizeof(*subsamples)); if (!(*sample)->subsamples) { av_encryption_info_free(*sample); |