change_encrypted_request_destination(): Plug a memory leak if the rewritten request...
authorFabian Keil <fk@fabiankeil.de>
Thu, 7 Jan 2021 14:30:59 +0000 (15:30 +0100)
committerFabian Keil <fk@fabiankeil.de>
Sun, 10 Jan 2021 15:48:22 +0000 (16:48 +0100)
jcc.c

diff --git a/jcc.c b/jcc.c
index 75459e8..930c299 100644 (file)
--- a/jcc.c
+++ b/jcc.c
@@ -2566,6 +2566,7 @@ static jb_err change_encrypted_request_destination(struct client_state *csp)
    {
       log_error(LOG_LEVEL_ERROR, "Couldn't parse rewritten request: %s.",
          jb_err_to_string(err));
+      freez(original_host);
       return err;
    }