IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 3, 2004, 5:20:08 PM (22 years ago)
Author:
gusciora
Message:

Added memory leak chewcks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/sysUtils/tst_psHash00.c

    r584 r860  
    11/*****************************************************************************
    2     This code tests whether a hash table be allocated successfully.
     2    This code will test whether a hash table can be allocated successfully.
    33 *****************************************************************************/
    44#include <stdio.h>
     
    1212    int testStatus      = true;
    1313    int i               = 0;
    14 
     14    int currentId = psMemGetId();
     15    int memLeaks        = 0;
    1516    printPositiveTestHeader(stdout,
    1617                            "psHash functions",
     
    5152                testStatus);
    5253
     54    psHashFree(myHashTable, NULL);
     55
     56    memLeaks = psMemCheckLeaks(currentId,NULL,NULL);
     57    if (0 != memLeaks) {
     58        psAbort(__func__,"Memory Leaks! (%d leaks)", memLeaks);
     59    }
     60    psMemCheckCorruption(1);
     61
    5362    return (!testStatus);
    5463}
Note: See TracChangeset for help on using the changeset viewer.