commit | a5e41632afce06a095c3ea8a18ffd504610b198a | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Tue Nov 02 12:19:40 2021 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Tue Nov 02 12:19:40 2021 +0100 |
tree | f541e5583e62040e762dd6d11083ec97ddb02c9a | |
parent | efa96e61c6ef8bdf2244b36f811c6f49771a270c [diff] |
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 */