diff options
Diffstat (limited to '')
-rw-r--r-- | src/tree_schema_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tree_schema_common.c b/src/tree_schema_common.c index 803009a..0faaa3c 100644 --- a/src/tree_schema_common.c +++ b/src/tree_schema_common.c @@ -768,7 +768,7 @@ lys_parse_localfile(struct ly_ctx *ctx, const char *name, const char *revision, { struct ly_in *in; char *filepath = NULL; - LYS_INFORMAT format; + LYS_INFORMAT format = 0; void *mod = NULL; LY_ERR ret = LY_SUCCESS; struct lysp_load_module_check_data check_data = {0}; @@ -1829,7 +1829,7 @@ lysc_node_lref_target(const struct lysc_node *node) /* get the target node */ target = p[LY_ARRAY_COUNT(p) - 1].node; - ly_path_free(node->module->ctx, p); + ly_path_free(p); return target; } |