]> 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)
committerSquid Anubis <squid-anubis@squid-cache.org>
Wed, 24 Feb 2021 10:42:06 +0000 (10:42 +0000)
A temporary parsing buffer was not being released when
parsing completed.

src/urn.cc

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