dapl/cma: fix referencing freed address