Commit 4d74c8d5 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/ffv1: dont leave stale pointers in memory

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent d19fc69f
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment