]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
chunksize(x) => x->size
authorJakub Jelinek <jakub@redhat.com>
Fri, 19 Nov 2004 06:38:37 +0000 (06:38 +0000)
committerJakub Jelinek <jakub@redhat.com>
Fri, 19 Nov 2004 06:38:37 +0000 (06:38 +0000)
malloc/malloc.c

index ca7c7e59bc939e31ddd8dd7266d753ca7599b664..c2ec82d0c845b55e753e8d3da571116ed18974bb 100644 (file)
@@ -4233,7 +4233,7 @@ _int_free(mstate av, Void_t* mem)
 #endif
       ) {
 
-    if (__builtin_expect (chunksize (chunk_at_offset (p, size)) <= 2 * SIZE_SZ,
+    if (__builtin_expect (chunk_at_offset (p, size)->size <= 2 * SIZE_SZ,
                          0)
        || __builtin_expect (chunksize (chunk_at_offset (p, size))
                             >= av->system_mem, 0))
@@ -4285,7 +4285,7 @@ _int_free(mstate av, Void_t* mem)
       }
 
     nextsize = chunksize(nextchunk);
-    if (__builtin_expect (nextsize <= 2 * SIZE_SZ, 0)
+    if (__builtin_expect (nextchunk->size <= 2 * SIZE_SZ, 0)
        || __builtin_expect (nextsize >= av->system_mem, 0))
       {
        errstr = "invalid next size (normal)";