schema compile BUGFIX memory leak
diff --git a/src/schema_compile.c b/src/schema_compile.c
index 760c052..b72d8d2 100644
--- a/src/schema_compile.c
+++ b/src/schema_compile.c
@@ -723,6 +723,7 @@
when->context, &tmp_set, LYXP_SCNODE_SCHEMA);
if (ret != LY_SUCCESS) {
LOGVAL(set->ctx, LYVE_SEMANTICS, "Invalid when condition \"%s\".", when->cond->expr);
+ LOG_LOCBACK(1, 0, 0, 0);
goto cleanup;
}
@@ -736,6 +737,7 @@
LOGVAL(set->ctx, LYVE_SEMANTICS, "When condition cyclic dependency on the node \"%s\".",
tmp_set.val.scnodes[j].scnode->name);
ret = LY_EVALID;
+ LOG_LOCBACK(1, 0, 0, 0);
goto cleanup;
}