[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.16 and 1.16.16.1

version 1.16, 2009/06/22 05:39:28 version 1.16.16.1, 2013/11/08 05:52:21
Line 60 
Line 60 
         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 83 
Line 83 
         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 152 
Line 152 
         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.16  
changed lines
  Added in v.1.16.16.1