summaryrefslogtreecommitdiffstats
path: root/src/tree_schema_common.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-17 02:59:34 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-17 02:59:54 +0000
commit5bc4f4fb5b383ca32b382b6c0d09602346064414 (patch)
treec741e5844c2815679107d648a15841653b9b01a5 /src/tree_schema_common.c
parentAdding upstream version 3.1.0+dfsg. (diff)
downloadlibyang3-5bc4f4fb5b383ca32b382b6c0d09602346064414.tar.xz
libyang3-5bc4f4fb5b383ca32b382b6c0d09602346064414.zip
Adding upstream version 3.4.2+dfsg.upstream/3.4.2+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/tree_schema_common.c')
-rw-r--r--src/tree_schema_common.c4
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;
}