diff options
author | Adrian Reber <areber@redhat.com> | 2020-09-28 10:04:00 +0300 |
---|---|---|
committer | Andrei Vagin <avagin@google.com> | 2022-05-13 03:55:45 +0300 |
commit | bf7b517fdabf05770e615cb2b2e6ccb89be302c7 (patch) | |
tree | e7443f6d67a7637aaed5f7643eede2c06f91a90c /flog | |
parent | 6f8d5435bbb54bf44f73802ada0b351f2f473156 (diff) |
flog: Missing varargs init or cleanup (VARARGS)
CID 302713 (#1 of 1): Missing varargs init or cleanup (VARARGS)
va_end was not called for argptr.
Signed-off-by: Adrian Reber <areber@redhat.com>
Diffstat (limited to 'flog')
-rw-r--r-- | flog/src/flog.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/flog/src/flog.c b/flog/src/flog.c index 533625de6..40cce3fed 100644 --- a/flog/src/flog.c +++ b/flog/src/flog.c @@ -186,6 +186,7 @@ int flog_encode_msg(int fdout, unsigned int nargs, unsigned int mask, const char p = memccpy(str_start, (void *)m->args[i], 0, mbuf_size - (str_start - mbuf)); if (p == NULL) { fprintf(stderr, "No memory for string argument\n"); + va_end(argptr); return -1; } m->args[i] = str_start - mbuf; |