From: Amos Jeffries Date: Thu, 1 Oct 2015 12:27:28 +0000 (-0700) Subject: negotiate_wrapper: fix minor memory leak X-Git-Tag: SQUID_4_0_1~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92c2f0bd9a7dbb9b2d2bc9f9f0f43cc60906a191;p=thirdparty%2Fsquid.git negotiate_wrapper: fix minor memory leak Detected by Coverity Scan. Issue 1324564 --- diff --git a/helpers/negotiate_auth/wrapper/negotiate_wrapper.cc b/helpers/negotiate_auth/wrapper/negotiate_wrapper.cc index 4d359c0cbc..39db528615 100644 --- a/helpers/negotiate_auth/wrapper/negotiate_wrapper.cc +++ b/helpers/negotiate_auth/wrapper/negotiate_wrapper.cc @@ -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)) {