data tree BUGFIX free temporary meta
diff --git a/src/tree_data.c b/src/tree_data.c
index 14719a7..0a28f90 100644
--- a/src/tree_data.c
+++ b/src/tree_data.c
@@ -1228,6 +1228,7 @@
     } /* else value changed, LY_SUCCESS */
 
 cleanup:
+    lyd_free_meta_single(m2);
     return ret;
 }