Index: trunk/psLib/src/sys/psTrace.c
===================================================================
--- trunk/psLib/src/sys/psTrace.c	(revision 1641)
+++ trunk/psLib/src/sys/psTrace.c	(revision 1700)
@@ -9,6 +9,6 @@
  *  @author George Gusciora, MHPCC
  *
- *  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-08-27 21:45:42 $
+ *  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-09-07 19:58:06 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -121,5 +121,5 @@
 void psTraceReset()
 {
-    componentFree(cRoot);
+    psFree(cRoot);
     cRoot = NULL;
 }
@@ -152,6 +152,6 @@
 
     if (addNodeName[0] != '.') {
-        printf("ERROR: failed to add %s to the root component tree.\n", addNodeName);
-        exit(1);
+        psAbort(__func__,"Failed to add %s to the root component tree.\n",
+                addNodeName);
     }
 
@@ -178,12 +178,12 @@
             currentNode->subcomp = psRealloc(currentNode->subcomp,
                                              (currentNode->n + 1) * sizeof(p_psComponent* ));
-            currentNode->n = (currentNode->n) + 1;
+            currentNode->n++;
 
             if (pname == NULL) {
-                currentNode->subcomp[(currentNode->n) - 1] = componentAlloc(firstComponent, level);
+                currentNode->subcomp[currentNode->n - 1] = componentAlloc(firstComponent, level);
             } else {
-                currentNode->subcomp[(currentNode->n) - 1] = componentAlloc(firstComponent, currentNode->level);
-            }
-            currentNode = currentNode->subcomp[(currentNode->n) - 1];
+                currentNode->subcomp[currentNode->n - 1] = componentAlloc(firstComponent, currentNode->level);
+            }
+            currentNode = currentNode->subcomp[currentNode->n - 1];
         }
     }
