--------------------- PatchSet 411 Date: 2002/12/16 11:46:44 Author: rbcollins Branch: unify-io Tag: (none) Log: gah, fixup major mem leak Members: src/fs/ufs/store_io_ufs.cc:1.3.10.49->1.3.10.50 Index: squid3/src/fs/ufs/store_io_ufs.cc =================================================================== RCS file: /cvsroot/squid-sf//squid3/src/fs/ufs/store_io_ufs.cc,v retrieving revision 1.3.10.49 retrieving revision 1.3.10.50 diff -u -r1.3.10.49 -r1.3.10.50 --- squid3/src/fs/ufs/store_io_ufs.cc 16 Dec 2002 10:59:00 -0000 1.3.10.49 +++ squid3/src/fs/ufs/store_io_ufs.cc 16 Dec 2002 11:46:44 -0000 1.3.10.50 @@ -1,6 +1,6 @@ /* - * $Id: store_io_ufs.cc,v 1.3.10.49 2002/12/16 10:59:00 rbcollins Exp $ + * $Id: store_io_ufs.cc,v 1.3.10.50 2002/12/16 11:46:44 rbcollins Exp $ * * DEBUG: section 79 Storage Manager UFS Interface * AUTHOR: Duane Wessels @@ -215,7 +215,7 @@ debug(79, 3) ("storeUfsClose: dirno %d, fileno %08X\n", swap_dirn, swap_filen); closing = true; - if (reading || writing) { + if (!(reading || writing)) { ((UFSFile *)theFile.getRaw())->close(); } } @@ -361,7 +361,6 @@ void ufsstate_t::writeCompleted(int errflag, size_t len) { - assert (0); debug(79, 3) ("storeUfsWriteDone: dirno %d, fileno %08X, len %ld\n", swap_dirn, swap_filen, (long int) len); writing = false; @@ -382,8 +381,6 @@ if (cbdataReferenceValidDone(callback_data, &cbdata)) callback(cbdata, errflag, this); callback = NULL; - ufsstate_t *anLvalue = this; - cbdataFree(anLvalue); }