commit | 20316b3a2301f0747d943ac2097d3e915549beaa | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Tue Jan 12 15:16:54 2021 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Tue Jan 12 15:16:54 2021 +0100 |
tree | 79cfca1856fd302dabafe109b7015acba42ab1da | |
parent | b8df576d7533e37cb1617405d4522eb1febec30f [diff] [blame] |
schema compile BUGFIX restore context modules
diff --git a/src/schema_compile_amend.c b/src/schema_compile_amend.c index 168d87d..63d516b 100644 --- a/src/schema_compile_amend.c +++ b/src/schema_compile_amend.c
@@ -1769,6 +1769,8 @@ } cleanup: + ctx->cur_mod = orig_mod; + ctx->pmod = orig_pmod; if (ret) { lysp_dev_node_free(ctx->ctx, *dev_pnode); *dev_pnode = NULL;