ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/malloc.c
(Generate patch)

Comparing ray/src/common/malloc.c (file contents):
Revision 2.9 by greg, Tue Oct 24 09:45:07 1995 UTC vs.
Revision 2.11 by gwlarson, Mon Aug 24 15:31:29 1998 UTC

# Line 27 | Line 27 | static char SCCSid[] = "$SunId$ LBL";
27   #ifndef  BSD
28   #define  bcopy(s,d,n)           (void)memcpy(d,s,n)
29   #define  bzero(d,n)             (void)memset(d,0,n)
30 extern char  *memcpy(), *memset();
30   #endif
31  
32   #ifdef MSTATS
# Line 304 | Line 303 | register unsigned  n;
303          register int    bucket;
304          register unsigned       bsiz;
305  
306 <        if (n < 1<<FIRSTBUCKET)
306 >        if (n < 1<<FIRSTBUCKET || p == NULL)
307                  return;
308   #ifdef MSTATS
309          b_nfreed += n;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines