schema parsers BUGFIX setting correct return error code
diff --git a/src/parser_yang.c b/src/parser_yang.c
index 22cfce2..71155a1 100644
--- a/src/parser_yang.c
+++ b/src/parser_yang.c
@@ -4474,7 +4474,7 @@
     }
 
     mod_p = calloc(1, sizeof *mod_p);
-    LY_CHECK_ERR_GOTO(!mod_p, LOGMEM((*context)->ctx), cleanup);
+    LY_CHECK_ERR_GOTO(!mod_p, LOGMEM((*context)->ctx); ret = LY_EMEM, cleanup);
     mod_p->parsing = 1;
 
     /* substatements */