fix in infi_CmiFree the case in standalone mode for SMP.
authorGengbin Zheng <gzheng@illinois.edu>
Sun, 8 Jul 2012 23:01:23 +0000 (18:01 -0500)
committerGengbin Zheng <gzheng@illinois.edu>
Sun, 8 Jul 2012 23:01:23 +0000 (18:01 -0500)
src/arch/net/machine-ibverbs.c

index 68c350baf597cbe1772dac24440c176facf91fef..5cbda896ed01fbf689897b5318c21d6b5fd27258 100644 (file)
@@ -2631,6 +2631,7 @@ void infi_CmiFree(void *ptr){
 
        MACHSTATE(3,"Freeing");
 
+        if (Cmi_charmrun_fd == -1) return free(ptr);
         ptr += sizeof(CmiChunkHeader);
         size = SIZEFIELD (ptr);
 /*      if(size > firstBinSize){*/