parser lyb BUGFIX double free
diff --git a/src/parser_lyb.c b/src/parser_lyb.c
index 9675877..596e48c 100644
--- a/src/parser_lyb.c
+++ b/src/parser_lyb.c
@@ -1164,6 +1164,7 @@
     case LYD_ANYDATA_JSON:
         /* value is expected to be in the dictionary */
         ret = lydict_insert_zc(ctx, value, &val_dict);
+        value = NULL;
         LY_CHECK_GOTO(ret, error);
 
         /* use the value in the dictionary */