]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
cachemgr.cgi: another memory leak
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 16 Nov 2012 05:17:59 +0000 (22:17 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 16 Nov 2012 05:17:59 +0000 (22:17 -0700)
 Detected by Coverity Scan. Issue 740445

tools/cachemgr.cc

index bd201cf436b48dec501e6029db73f16fdacee90b..de28e1ee95f95b562284196adeb9ce0781a8f3c0 100644 (file)
@@ -1224,6 +1224,7 @@ make_auth_header(const cachemgr_request * req)
 
     snprintf(&buf[stringLength], sizeof(buf) - stringLength, "Proxy-Authorization: Basic %s\r\n", str64);
 
+    xfree(str64);
     return buf;
 }