From: hno <> Date: Tue, 19 Sep 2006 05:14:46 +0000 (+0000) Subject: Bug #1760: FTP related memory leak X-Git-Tag: SQUID_3_0_PRE5~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d0440a26c8300f01e6e4f42a158e0e0bbd06a22;p=thirdparty%2Fsquid.git Bug #1760: FTP related memory leak A small memory leak was found in the handling of certain ftp requests --- diff --git a/src/ftp.cc b/src/ftp.cc index 1b924f1838..00af30adca 100644 --- a/src/ftp.cc +++ b/src/ftp.cc @@ -1,6 +1,6 @@ /* - * $Id: ftp.cc,v 1.405 2006/09/18 23:13:21 hno Exp $ + * $Id: ftp.cc,v 1.406 2006/09/18 23:14:46 hno Exp $ * * DEBUG: section 9 File Transfer Protocol (FTP) * AUTHOR: Harvest Derived @@ -444,6 +444,8 @@ FtpStateData::~FtpStateData() safe_free(filepath); + safe_free(dirpath); + safe_free(data.host); /* XXX this is also set to NULL in transactionForwardComplete */ fwd = NULL; // refcounted