IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 175


Ignore:
Timestamp:
Mar 9, 2004, 3:03:07 PM (22 years ago)
Author:
rhl
Message:

Call memFreeCB() before checking for memory problems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/pslib/src/Utils/memory.c

    r146 r175  
    8282
    8383    if (lineno > 0) {
    84         psAbort(__func__, "Detected memory corruption at %s:%d", file, lineno);
     84        psAbort(__func__, "Detected a problem in the memory system at %s:%d", file, lineno);
    8585    }
    8686}
     
    285285
    286286    psMemBlock *ptr = ((psMemBlock *)vptr) - 1;
     287    /*
     288     * Did the user ask to be informed about this deallocation?
     289     */
     290    if (ptr->id == p_psMemFreeID) {
     291        p_psMemFreeID += memFreeCB(ptr);       
     292    }
    287293
    288294    if (bad_memblock(ptr, 0) || ptr->refCounter != 1) {
    289295        memProblemCB(ptr, file, lineno);
    290     }
    291     /*
    292      * Did the user ask to be informed about this allocation?
    293      */
    294     if(ptr->id == p_psMemFreeID) {
    295         p_psMemFreeID += memFreeCB(ptr);       
    296296    }
    297297
Note: See TracChangeset for help on using the changeset viewer.