Fix memory leak in mutable DataRef