Index: trunk/psLib/src/sysUtils/psHash.c
===================================================================
--- trunk/psLib/src/sysUtils/psHash.c	(revision 1371)
+++ trunk/psLib/src/sysUtils/psHash.c	(revision 1375)
@@ -9,7 +9,7 @@
 *  @author Robert Lupton, Princeton University
 *  @author George Gusciora, MHPCC
-*   
-*  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2004-08-02 22:31:02 $
+*
+*  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2004-08-04 01:21:33 $
 *
 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -38,5 +38,5 @@
     table: a hash table
 Return;
-    The linked list 
+    The linked list
  *****************************************************************************/
 psList *psHashKeyList( psHash *table )
@@ -114,5 +114,5 @@
 /******************************************************************************
 hashBucketFree(bucket): This procedure deallocates the specified
-hash bucket.  
+hash bucket.
 Inputs:
     bucket: the hash bucket to be freed.
@@ -144,5 +144,5 @@
     The new hash table.
  *****************************************************************************/
-psHash *psHashAlloc( int nbucket )  // initial number of buckets
+psHash *psHashAlloc( int nbucket )   // initial number of buckets
 {
     int i = 0;   // loop index variable
@@ -181,6 +181,4 @@
 static void hashFree( psHash *table )
 {
-    psHashBucket * tmp = NULL;           // Used to step through linked list.
-    psHashBucket *ptr = NULL;           // Used to step through linked list.
     int i = 0;                          // Loop index variable.
     
@@ -191,17 +189,9 @@
     // Loop through each bucket in the hash table.  If that bucket is not
     // NULL, then free the bucket via a function call to hashBucketFree();
-    
     for ( i = 0; i < table->nbucket; i++ ) {
-            // A bucket is composed of a linked list of buckets.  We use the
-            // "tmp" and "ptr" pointers to step through that list and free each
-            // non-NULL bucket.
-            
+    
+            // A bucket is composed of a linked list of buckets.
             if ( table->buckets[ i ] != NULL ) {
-                    ptr = table->buckets[ i ];
-                    while ( ptr != NULL ) {
-                            tmp = ptr->next;
-                            psFree( ptr );
-                            ptr = tmp;
-                        }
+                    psFree( table->buckets[ i ] );
                 }
         }
@@ -359,5 +349,5 @@
     itemFree: a function pointer
 Return:
-    boolean value defining success or failure 
+    boolean value defining success or failure
  *****************************************************************************/
 bool psHashAdd( psHash *table, const char *key, void *data )
@@ -387,6 +377,6 @@
     The data associated with that key.
  *****************************************************************************/
-void *psHashLookup( psHash *table,    // table to lookup key in
-                    const char *key )  // key to lookup
+void *psHashLookup( psHash *table,     // table to lookup key in
+                    const char *key )   // key to lookup
 {
     if ( table == NULL ) {
