From: rousskov <> Date: Tue, 24 Jul 2007 22:15:32 +0000 (+0000) Subject: The _queued_write objects dequeued for writing were not deleted, X-Git-Tag: SQUID_3_0_PRE7~147 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9db2e2131f2316169bb92a5143e9d87a5f984bda;p=thirdparty%2Fsquid.git The _queued_write objects dequeued for writing were not deleted, causing a memory leak when 'ufs' filesystem was in use. --- diff --git a/src/fs/ufs/store_io_ufs.cc b/src/fs/ufs/store_io_ufs.cc index 11a5b9a0ad..6158a31578 100644 --- a/src/fs/ufs/store_io_ufs.cc +++ b/src/fs/ufs/store_io_ufs.cc @@ -1,6 +1,6 @@ /* - * $Id: store_io_ufs.cc,v 1.38 2007/04/30 16:56:17 wessels Exp $ + * $Id: store_io_ufs.cc,v 1.39 2007/07/24 16:15:32 rousskov Exp $ * * DEBUG: section 79 Storage Manager UFS Interface * AUTHOR: Duane Wessels @@ -279,6 +279,7 @@ UFSStoreState::doWrite() * write_pending flag. */ q->free_func((void*)q->buf); + delete q; return; } @@ -295,6 +296,7 @@ UFSStoreState::doWrite() debugs(79, 3, HERE << this << " calling theFile->write(" << q->size << ")"); theFile->write(new WriteRequest(q->buf, q->offset, q->size, q->free_func)); + delete q; } void