schema compile BUGFIX missing check of the function return value
diff --git a/src/path.c b/src/path.c
index 2eeb7df..36bb639 100644
--- a/src/path.c
+++ b/src/path.c
@@ -388,7 +388,7 @@
                 LOGVAL_P(ctx, cur_node, LYVE_XPATH, "Not implemented module \"%s\" in path.", (*mod)->name);
                 return LY_EVALID;
             }
-            lys_set_implemented_internal((struct lys_module *)*mod, ctx->module_set_id);
+            LY_CHECK_RET(lys_set_implemented_internal((struct lys_module *)*mod, ctx->module_set_id));
         }
     } else {
         switch (format) {