diff --git a/libavcodec/tscc.c b/libavcodec/tscc.c index 6cc9ca82e9880549371f149c716c249a80af6140..10940440470984db51d50c6e410d5e92c28d75f2 100644 --- a/libavcodec/tscc.c +++ b/libavcodec/tscc.c @@ -305,6 +305,8 @@ static int decode_end(AVCodecContext *avctx) { CamtasiaContext * const c = (CamtasiaContext *)avctx->priv_data; + av_freep(&c->decomp_buf); + if (c->pic.data[0]) avctx->release_buffer(avctx, &c->pic); #ifdef CONFIG_ZLIB