[K42-discussion] why destory theDeletedObj?

Patrick Bozeman PEBozeman at lbl.gov
Sat Sep 23 09:39:13 EST 2006


Can someone explain the purpose of destroying the theDeletedObj in the 
following snippet?

SysStatus
DirLinuxFSVolatile::eliminateStaleDir(
    DirLinuxFSVolatileRef lockedParent /* = NULL */)
{
    // FIXME: we are not freeing the subtree properly!

    FSFile* f = fileInfo;
    fileInfo = (FSFile*)theDeletedObj;
    f->destroy();

    <snip>



More information about the K42-discussion mailing list