]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug #1760: FTP related memory leak
authorhno <>
Tue, 19 Sep 2006 05:14:46 +0000 (05:14 +0000)
committerhno <>
Tue, 19 Sep 2006 05:14:46 +0000 (05:14 +0000)
A small memory leak was found in the handling of certain ftp requests

src/ftp.cc

index 1b924f183801e94f721520318dece639abcd083a..00af30adca2501e48d21ed02a1d8bdd120bb0e9d 100644 (file)
@@ -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