Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: [OMPI devel] [PATCH 1/4] opal-ps: fix memory leak
From: Bert Wesarg (bert.wesarg_at_[hidden])
Date: 2009-02-19 07:29:42


From: Bert Wesarg <Bert.Wesarg_at_[hidden]>

---
 orte/tools/orte-ps/orte-ps.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --quilt old/orte/tools/orte-ps/orte-ps.c new/orte/tools/orte-ps/orte-ps.c
--- old/orte/tools/orte-ps/orte-ps.c
+++ new/orte/tools/orte-ps/orte-ps.c
@@ -392,10 +392,10 @@ static int pretty_print(orte_ps_mpirun_i
     /*
      * Print header
      */
-    asprintf(&header, "\n\nInformation from mpirun %s", ORTE_JOBID_PRINT(hnpinfo->hnp->name.jobid));
+    asprintf(&header, "Information from mpirun %s", ORTE_JOBID_PRINT(hnpinfo->hnp->name.jobid));
     len_hdr = strlen(header);
     
-    printf("%s\n", header);
+    printf("\n\n%s\n", header);
     free(header);
     for (i=0; i < len_hdr; i++) {
         printf("%c", '-');