BUG/MEDIUM: fcgi-app: fix memory leak in fcgi_flt_http_headers
authorHarris Kaufmann <st4ck0v3rfl0w@gmail.com>
Wed, 15 Jul 2020 14:26:13 +0000 (16:26 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 17 Jul 2020 08:29:20 +0000 (10:29 +0200)
commitbdbc0db09582eac2d1c71eca1088e0ef598d6ef2
tree3ed9b68ef8428e14b1793c9d31b7e8d11945efd6
parentb2bb526fa46b5e2119683d60e9a7ddefad801965
BUG/MEDIUM: fcgi-app: fix memory leak in fcgi_flt_http_headers

When the loop is continued early, the memory for param_rule is not freed. This
can leak memory per request, which will eventually consume all available memory
on the server.

This patch should fix the issue #750. It must be backported as far as 2.1.

(cherry picked from commit b605a736b0766030746b50c322879d929fcebacf)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit 4f472bedc8c696f9c18da0eb16904a98a37f076c)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/fcgi-app.c