]>
Commit | Line | Data |
---|---|---|
bb330e25 AF |
1 | diff -pruN glibc-2.12-2-gc4ccff1/malloc/malloc.c glibc-2.12-2-gc4ccff1.new/malloc/malloc.c |
2 | --- glibc-2.12-2-gc4ccff1/malloc/malloc.c 2015-04-10 12:02:54.011106386 +0530 | |
3 | +++ glibc-2.12-2-gc4ccff1.new/malloc/malloc.c 2015-04-10 12:02:35.867958292 +0530 | |
4 | @@ -5850,7 +5850,7 @@ _int_valloc(av, bytes) mstate av; size_t | |
5 | #endif | |
6 | { | |
7 | /* Ensure initialization/consolidation */ | |
8 | - if (have_fastchunks(av)) malloc_consolidate(av); | |
9 | + if (av && have_fastchunks(av)) malloc_consolidate(av); | |
10 | return _int_memalign(av, mp_.pagesize, bytes); | |
11 | } | |
12 |