Free in avcodec_close() avctx->rc_eq. Fix a memory leak.