[Privoxy-commits] [privoxy] 04/13: decompress_iob(): Fix a memory leak

User Git git at git.privoxy.org
Sat Jan 30 17:10:03 UTC 2021


This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository privoxy.

commit f431d61740cc03c1c5f6b7f9c7a4a8d0bedd70dd
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Thu Jan 28 18:02:56 2021 +0100

    decompress_iob(): Fix a memory leak
    
    ... when decompression fails "unexpectedly".
    
    OVE-20210128-0001.
---
 parsers.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/parsers.c b/parsers.c
index 3b195300..df7b86bf 100644
--- a/parsers.c
+++ b/parsers.c
@@ -818,6 +818,7 @@ jb_err decompress_iob(struct client_state *csp)
       log_error(LOG_LEVEL_ERROR,
          "Unexpected error while decompressing to the buffer (iob): %s",
          zstr.msg);
+      freez(buf);
       return JB_ERR_COMPRESS;
    }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Privoxy-commits mailing list