]> granicus.if.org Git - gc/commit
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>
Mon, 31 Oct 2016 20:43:09 +0000 (23:43 +0300)
commit0d6cf012b2b1730935523defd87b79b1856325a2
tree0cfc6bd51df0755bf99841bab4b99afe4690d493
parent11c0290cdc5e182b2f8edc393bdfbe5df3c83f50
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