From c5870508a07480d99891c63a4104cb996ea342fc Mon Sep 17 00:00:00 2001 From: Christophe Jaillet Date: Thu, 21 Aug 2014 06:56:40 +0000 Subject: [PATCH] Missing va_end spotted by cppcheck git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1619297 13f79535-47bb-0310-9956-ffa450edef68 --- server/util_ebcdic.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/util_ebcdic.c b/server/util_ebcdic.c index 7faae794de9..dc13706465a 100644 --- a/server/util_ebcdic.c +++ b/server/util_ebcdic.c @@ -104,8 +104,10 @@ int ap_rvputs_proto_in_ascii(request_rec *r, ...) len = strlen(s); ascii_s = apr_pstrmemdup(r->pool, s, len); ap_xlate_proto_to_ascii(ascii_s, len); - if (ap_rputs(ascii_s, r) < 0) + if (ap_rputs(ascii_s, r) < 0) { + va_end(va); return -1; + } written += len; } va_end(va); -- 2.47.3