Fix GC_bytes_allocd incrementation in case of allocation failure
authorIvan Maidanski <ivmai@mail.ru>
Tue, 27 Sep 2016 17:05:19 +0000 (20:05 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Tue, 27 Sep 2016 17:05:19 +0000 (20:05 +0300)
commitc11aef28278160df8720a755417a2fb6f1c56278
tree8e0defdf4f5c5da123548cf0a8df6035e1922ed2
parent145c375f7423cd777cc0ef0effa38b64372efbda
Fix GC_bytes_allocd incrementation in case of allocation failure

* malloc.c (GC_generic_malloc_inner,
GC_generic_malloc_inner_ignore_off_page, GC_generic_malloc): Increment
GC_bytes_allocd only if the allocation successful (op != NULL).
* mallocx.c (GC_generic_malloc_ignore_off_page): Likewise.
malloc.c
mallocx.c