Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-04-13 21:08:42 +0300
committerMichael Niedermayer <michaelni@gmx.at>2015-04-13 21:08:42 +0300
commit4d74c8d5503503097e8c6968d37d8a78dc4795e5 (patch)
tree175f50cd91201e2a83726bb0fe219ed048c4f3b0 /libavcodec/ffv1.c
parentd19fc69f15c333956dc537604308ee2944be10a3 (diff)
avcodec/ffv1: dont leave stale pointers in memory
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/ffv1.c')
-rw-r--r--libavcodec/ffv1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c
index aada565f90..7a38bf9212 100644
--- a/libavcodec/ffv1.c
+++ b/libavcodec/ffv1.c
@@ -140,7 +140,7 @@ av_cold int ffv1_init_slice_contexts(FFV1Context *f)
fs->sample_buffer = av_malloc_array((fs->width + 6), 3 * MAX_PLANES *
sizeof(*fs->sample_buffer));
if (!fs->sample_buffer) {
- av_free(fs);
+ av_freep(&f->slice_context[i]);
goto memfail;
}
}