decompress_iob(): Free the temporary buffer when the buffer limit is reached
authorFabian Keil <fk@fabiankeil.de>
Mon, 2 Mar 2020 17:14:29 +0000 (18:14 +0100)
committerFabian Keil <fk@fabiankeil.de>
Mon, 2 Mar 2020 17:44:58 +0000 (18:44 +0100)
... instead of leaking it.

Sponsored by: Robert Klemme

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");
+         freez(buf);
          return JB_ERR_MEMORY;
       }