decompress_iob(): Free the temporary buffer when the buffer limit is reached
[privoxy.git] / parsers.c
index 1b897bc..b65474c 100644 (file)
--- a/parsers.c
+++ b/parsers.c
@@ -633,6 +633,7 @@ jb_err decompress_iob(struct client_state *csp)
       if (bufsize >= csp->config->buffer_limit)
       {
          log_error(LOG_LEVEL_ERROR, "Buffer limit reached while decompressing iob");
       if (bufsize >= csp->config->buffer_limit)
       {
          log_error(LOG_LEVEL_ERROR, "Buffer limit reached while decompressing iob");
+         freez(buf);
          return JB_ERR_MEMORY;
       }
 
          return JB_ERR_MEMORY;
       }