Changeset 1419
- Timestamp:
- Aug 9, 2004, 10:21:16 AM (22 years ago)
- Location:
- trunk/psLib
- Files:
-
- 4 edited
-
src/sysUtils/psHash.c (modified) (2 diffs)
-
test/astronomy/tst_psMetadata_03.c (modified) (2 diffs)
-
test/collections/tst_psMetadata_03.c (modified) (2 diffs)
-
test/sysUtils/tst_psHash03.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sysUtils/psHash.c
r1413 r1419 11 11 * @author George Gusciora, MHPCC 12 12 * 13 * @version $Revision: 1.1 7$ $Name: not supported by cvs2svn $14 * @date $Date: 2004-08-0 7 00:33:36 $13 * @version $Revision: 1.18 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2004-08-09 20:21:16 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 401 401 data = doHashWork(table, key, NULL, 1); 402 402 if (data != NULL) { 403 psFree(data);404 403 retVal = true; 405 404 } else { -
trunk/psLib/test/astronomy/tst_psMetadata_03.c
r1416 r1419 14 14 * @author Ross Harman, MHPCC 15 15 * 16 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $17 * @date $Date: 2004-08-09 19:31:00$16 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 17 * @date $Date: 2004-08-09 20:20:02 $ 18 18 * 19 19 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 125 125 printPositiveTestHeader(stdout, "psMetadata", "Test G - Free psMetadata"); 126 126 psFree(metadata); 127 psFree(item1); 128 psFree(item2); 129 psFree(item3); 130 psFree(item4); 127 131 psMemCheckLeaks(0, NULL, stdout); 128 132 psMemCheckCorruption(0); -
trunk/psLib/test/collections/tst_psMetadata_03.c
r1416 r1419 14 14 * @author Ross Harman, MHPCC 15 15 * 16 * @version $Revision: 1. 2$ $Name: not supported by cvs2svn $17 * @date $Date: 2004-08-09 19:31:00$16 * @version $Revision: 1.3 $ $Name: not supported by cvs2svn $ 17 * @date $Date: 2004-08-09 20:20:02 $ 18 18 * 19 19 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 125 125 printPositiveTestHeader(stdout, "psMetadata", "Test G - Free psMetadata"); 126 126 psFree(metadata); 127 psFree(item1); 128 psFree(item2); 129 psFree(item3); 130 psFree(item4); 127 131 psMemCheckLeaks(0, NULL, stdout); 128 132 psMemCheckCorruption(0); -
trunk/psLib/test/sysUtils/tst_psHash03.c
r1406 r1419 70 70 bool retVal = false; 71 71 ID *id = NULL; 72 ID *ids[4]; 72 73 char *myKeys[] = {"ENTRY00", "ENTRY01", "ENTRY02", "ENTRY03", NULL 73 74 }; … … 86 87 i = 0; 87 88 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]); 89 91 i++; 90 92 } … … 124 126 125 127 psFree(myHashTable); 128 for(i=0; i<(TotalKeys+1); i++) { 129 psFree(ids[i]); 130 } 126 131 memLeaks = psMemCheckLeaks(currentId,NULL,stdout); 127 132 if (0 != memLeaks) {
Note:
See TracChangeset
for help on using the changeset viewer.
