IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 9, 2004, 10:21:16 AM (22 years ago)
Author:
harman
Message:

Minor corrections from testing

File:
1 edited

Legend:

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

    r1406 r1419  
    7070    bool retVal         = false;
    7171    ID *id = NULL;
     72    ID *ids[4];
    7273    char *myKeys[] = {"ENTRY00", "ENTRY01", "ENTRY02", "ENTRY03", NULL
    7374                     };
     
    8687    i = 0;
    8788    while (myKeys[i] != NULL) {
    88         psHashAdd(myHashTable, myKeys[i], IdAlloc(myData[i]));
     89        ids[i] = IdAlloc(myData[i]);
     90        psHashAdd(myHashTable, myKeys[i], ids[i]);
    8991        i++;
    9092    }
     
    124126
    125127    psFree(myHashTable);
     128    for(i=0; i<(TotalKeys+1); i++) {
     129        psFree(ids[i]);
     130    }
    126131    memLeaks = psMemCheckLeaks(currentId,NULL,stdout);
    127132    if (0 != memLeaks) {
Note: See TracChangeset for help on using the changeset viewer.