]> Git Repo - uclibc-ng.git/commitdiff
MALLOC_SET_SIZE now takes the user-address rather than the base-address.
authorMiles Bader <[email protected]>
Tue, 30 Jul 2002 09:46:24 +0000 (09:46 -0000)
committerMiles Bader <[email protected]>
Tue, 30 Jul 2002 09:46:24 +0000 (09:46 -0000)
libc/stdlib/malloc/malloc.c

index caf90ef02491ffda76e42ec37cffe8d7bead5eaf..0e0c9ab57ece95674aceff0e35eb2e6dfead9df9 100644 (file)
@@ -121,9 +121,8 @@ malloc (size_t size)
   if (mem)
     /* Record the size of this block.  */
     {
-      MALLOC_SET_SIZE (mem, size);
-
       mem = MALLOC_ADDR (mem);
+      MALLOC_SET_SIZE (mem, size);
 
       MALLOC_DEBUG ("  malloc: returning 0x%lx (base:0x%lx, total_size:%d)\n",
                    (long)mem, (long)mem - MALLOC_ALIGNMENT, size);
This page took 0.025839 seconds and 4 git commands to generate.