data BUGFIX double free
diff --git a/src/plugins_types.c b/src/plugins_types.c
index 3ce45d7..ae1d7a6 100644
--- a/src/plugins_types.c
+++ b/src/plugins_types.c
@@ -876,7 +876,6 @@
     if (options & LY_TYPE_OPTS_CANONIZE) {
         if (options & LY_TYPE_OPTS_DYNAMIC) {
             *canonized = lydict_insert_zc(ctx, (char*)value);
-            free((char*)value);
         } else {
             *canonized = lydict_insert(ctx, value_len ? value : "", value_len);
         }