]> granicus.if.org Git - apache/commitdiff
Missing va_end spotted by cppcheck
authorChristophe Jaillet <jailletc36@apache.org>
Thu, 21 Aug 2014 06:56:40 +0000 (06:56 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Thu, 21 Aug 2014 06:56:40 +0000 (06:56 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1619297 13f79535-47bb-0310-9956-ffa450edef68

server/util_ebcdic.c

index 7faae794de91f26fb0850c569369df60468e5de6..dc13706465aee3967804c61a967679569a97de98 100644 (file)
@@ -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);