summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>2015-11-11 16:38:24 +1100
committerSamuel Mendoza-Jonas <sam.mj@au1.ibm.com>2015-12-18 11:15:58 +1100
commite90189081c52496a9db6fd0b8a0c4899f51b9049 (patch)
treef3d7c20a8d445d6480e216b64518840fc0f3a00e
parente6ba022cef0ab01bcfbd5ce2e0e3f93f6ee3376b (diff)
downloadtalos-petitboot-e90189081c52496a9db6fd0b8a0c4899f51b9049.tar.gz
talos-petitboot-e90189081c52496a9db6fd0b8a0c4899f51b9049.zip
lib/talloc: Add missing va_end() calls
Fixes Coverity defects #30485 and #30486 Signed-off-by: Samuel Mendoza-Jonas <sam.mj@au1.ibm.com>
-rw-r--r--lib/talloc/talloc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/talloc/talloc.c b/lib/talloc/talloc.c
index dd10893..fa34323 100644
--- a/lib/talloc/talloc.c
+++ b/lib/talloc/talloc.c
@@ -984,6 +984,7 @@ char *talloc_vasprintf(const void *t, const char *fmt, va_list ap)
talloc_set_name_const(ret, ret);
}
+ va_end(ap2);
return ret;
}
@@ -1038,6 +1039,7 @@ static char *talloc_vasprintf_append(char *s, const char *fmt, va_list ap)
vsnprintf(s+s_len, len+1, fmt, ap2);
talloc_set_name_const(s, s);
+ va_end(ap2);
return s;
}
OpenPOWER on IntegriCloud