commit | 1cd812f0c36a51f3e8bf6e50f5ceb7a9306ad252 | [log] [tgz] |
---|---|---|
author | Radek Krejci <rkrejci@cesnet.cz> | Tue Dec 01 12:17:53 2020 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Wed Dec 02 12:20:04 2020 +0100 |
tree | 563800647d658d63607ac7247d46b651012d7d8e | |
parent | afb2883efaa7935082f3e1251096c0f827a5ab68 [diff] |
libyang BUGFIX not destroyed variable argument data in case of error
diff --git a/src/common.c b/src/common.c index b923bb3..536b044 100644 --- a/src/common.c +++ b/src/common.c
@@ -439,6 +439,7 @@ if (*dest) { *dest = ly_realloc(*dest, len); if (!*dest) { + va_end(fp); return LY_EMEM; } *dest = strcat(*dest, addition);