commit | f027df7b8d1a68323a396cf6e4a6b50500d5839f | [log] [tgz] |
---|---|---|
author | Radek Krejci <rkrejci@cesnet.cz> | Tue Sep 15 13:00:28 2020 +0200 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Tue Sep 15 13:00:28 2020 +0200 |
tree | 601902fddc004e029e185ca3bd32bd67eb355efa | |
parent | 011e4aa0c62902b24dd42833a7b77a83f313b876 [diff] [blame] |
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 */