]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 5104: Memory leak in RFC 2169 response parsing (#778)
authorAmos Jeffries <yadij@users.noreply.github.com>
Wed, 24 Feb 2021 00:53:21 +0000 (00:53 +0000)
committerAmos Jeffries <yadij@users.noreply.github.com>
Sun, 4 Apr 2021 05:16:24 +0000 (17:16 +1200)
A temporary parsing buffer was not being released when
parsing completed.

src/urn.cc

index 69a9cd5240db5d034e4e334cbae764687b6977db..5fb8a727c91088f4e64bd89d6afa4fe252a99937 100644 (file)
@@ -412,6 +412,7 @@ urnParseReply(const char *inbuf, const HttpRequestMethod& m)
     }
 
     debugs(52, 3, "urnParseReply: Found " << i << " URLs");
+    xfree(buf);
     return list;
 }