[mpich-commits] [mpich] MPICH primary repository branch, master, updated. v3.1-28-g6f6e2dc

Service Account noreply at mpich.org
Mon Mar 10 09:20:32 CDT 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "MPICH primary repository".

The branch, master has been updated
       via  6f6e2dccc70fb7835275524e866f48357de81dab (commit)
      from  e65d15dcd45aa30c20b697e7762e79016ff02ec7 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.mpich.org/mpich.git/commitdiff/6f6e2dccc70fb7835275524e866f48357de81dab

commit 6f6e2dccc70fb7835275524e866f48357de81dab
Author: Huiwei Lu <huiweilu at mcs.anl.gov>
Date:   Sun Mar 9 16:27:24 2014 -0500

    Fixes freeing uninitialized memory
    
    Last fix corrected malloc(0) problem but forgot the free part.
    
    Fixes #2054
    
    Signed-off-by: Pavan Balaji <balaji at mcs.anl.gov>

diff --git a/src/mpid/ch3/channels/nemesis/src/mpid_nem_finalize.c b/src/mpid/ch3/channels/nemesis/src/mpid_nem_finalize.c
index ebd2792..272ac50 100644
--- a/src/mpid/ch3/channels/nemesis/src/mpid_nem_finalize.c
+++ b/src/mpid/ch3/channels/nemesis/src/mpid_nem_finalize.c
@@ -34,7 +34,8 @@ int MPID_nem_finalize(void)
     MPIU_Free(MPID_nem_mem_region.FreeQ);
     MPIU_Free(MPID_nem_mem_region.RecvQ);
     MPIU_Free(MPID_nem_mem_region.local_ranks);
-    MPIU_Free(MPID_nem_mem_region.ext_ranks);
+    if (MPID_nem_mem_region.ext_procs > 0)
+        MPIU_Free(MPID_nem_mem_region.ext_ranks);
     MPIU_Free(MPID_nem_mem_region.seg);
     MPIU_Free(MPID_nem_mem_region.mailboxes.out);
     MPIU_Free(MPID_nem_mem_region.mailboxes.in);

-----------------------------------------------------------------------

Summary of changes:
 .../ch3/channels/nemesis/src/mpid_nem_finalize.c   |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
MPICH primary repository


More information about the commits mailing list