]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
negotiate_wrapper: fix minor memory leak
authorAmos Jeffries <squid3@treenet.co.nz>
Thu, 1 Oct 2015 12:27:28 +0000 (05:27 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 1 Oct 2015 12:27:28 +0000 (05:27 -0700)
 Detected by Coverity Scan. Issue 1324564

helpers/negotiate_auth/wrapper/negotiate_wrapper.cc

index 4d359c0cbc6fca47d8152744a3226afd7f24921e..39db528615fd74c1476c2d8bbf0317bbd006e757 100644 (file)
@@ -162,6 +162,7 @@ processingLoop(FILE *FDKIN, FILE *FDKOUT, FILE *FDNIN, FILE *FDNOUT)
         }
         if (!strncmp(buf, "QQ", 2)) {
             fprintf(stdout, "BH quit command\n");
+            xfree(token);
             return 0;
         }
         if (strncmp(buf, "YR", 2) && strncmp(buf, "KK", 2)) {