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_psHash04.c

    r584 r860  
    11/*****************************************************************************
    2     This code tests whether the call psHashKeyList() function works.
     2    This code will test whether the call psHashKeyList() function works.
    33 *****************************************************************************/
    44#include <stdio.h>
     
    3636    char *myKeys[] = {"ENTRY00", "ENTRY01", "ENTRY02", "ENTRY03", NULL};
    3737    char *myData[] = {"IDA", "IDB", "IDC", "IDD", NULL};
     38    int currentId = psMemGetId();
     39    int memLeaks        = 0;
    3840
    3941    printPositiveTestHeader(stdout,
     
    5961                testStatus);
    6062
     63    psHashFree(myHashTable, NULL);
     64
     65    memLeaks = psMemCheckLeaks(currentId,NULL,NULL);
     66    if (0 != memLeaks) {
     67        psAbort(__func__,"Memory Leaks! (%d leaks)", memLeaks);
     68    }
     69    psMemCheckCorruption(1);
     70
    6171    return(!testStatus);
    6272}
Note: See TracChangeset for help on using the changeset viewer.