[BACK]Return to monitor_mm.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/Attic/monitor_mm.c between version 1.17 and 1.18

version 1.17, 2013/05/17 00:13:13 version 1.18, 2013/11/08 00:39:15
Line 61 
Line 61 
         struct mm_share *tmp, *tmp2;          struct mm_share *tmp, *tmp2;
   
         if (mm->mmalloc == NULL)          if (mm->mmalloc == NULL)
                 tmp = xmalloc(sizeof(struct mm_share));                  tmp = xcalloc(1, sizeof(struct mm_share));
         else          else
                 tmp = mm_xmalloc(mm->mmalloc, sizeof(struct mm_share));                  tmp = mm_xmalloc(mm->mmalloc, sizeof(struct mm_share));
         tmp->address = address;          tmp->address = address;
Line 84 
Line 84 
         struct mm_master *mm;          struct mm_master *mm;
   
         if (mmalloc == NULL)          if (mmalloc == NULL)
                 mm = xmalloc(sizeof(struct mm_master));                  mm = xcalloc(1, sizeof(struct mm_master));
         else          else
                 mm = mm_xmalloc(mmalloc, sizeof(struct mm_master));                  mm = mm_xmalloc(mmalloc, sizeof(struct mm_master));
   
Line 153 
Line 153 
         address = mm_malloc(mm, size);          address = mm_malloc(mm, size);
         if (address == NULL)          if (address == NULL)
                 fatal("%s: mm_malloc(%lu)", __func__, (u_long)size);                  fatal("%s: mm_malloc(%lu)", __func__, (u_long)size);
           memset(address, 0, size);
         return (address);          return (address);
 }  }
   

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18