v3d: Fix leak of the mem_ctx after the DAG refactor.