From: amosjeffries <> Date: Thu, 2 Aug 2007 08:24:55 +0000 (+0000) Subject: Fix memory leak in cachemgr detected by Coverity checker. X-Git-Tag: SQUID_3_0_PRE7~126 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=368520fc25e20baff25d477df3fb11eee4a2e47e;p=thirdparty%2Fsquid.git Fix memory leak in cachemgr detected by Coverity checker. --- diff --git a/tools/cachemgr.cc b/tools/cachemgr.cc index 7897bdefc0..73c2976196 100644 --- a/tools/cachemgr.cc +++ b/tools/cachemgr.cc @@ -1,6 +1,6 @@ /* - * $Id: cachemgr.cc,v 1.3 2006/09/10 20:08:20 serassio Exp $ + * $Id: cachemgr.cc,v 1.4 2007/08/02 02:24:55 amosjeffries Exp $ * * DEBUG: section 0 CGI Cache Manager * AUTHOR: Duane Wessels @@ -944,8 +944,10 @@ read_request(void) if (strlen(buf) == 0) #endif - + { + free(buf); return NULL; + } req = (cachemgr_request *)xcalloc(1, sizeof(cachemgr_request));