avcodec/libdavs2: workaround memory leak