]> granicus.if.org Git - gc/commit
Fix VirtualQuery call in case of malloc failure (Win32)
authorIvan Maidanski <ivmai@mail.ru>
Wed, 20 Jun 2018 07:56:19 +0000 (10:56 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 18 Jul 2018 19:32:28 +0000 (22:32 +0300)
commitcbbe9ead784664c5e399c00fc9e947b0c7527e11
treec710ed119e6e3b5d4aec56b91a137f03bd2587cf
parent9bb4d91fe7ce4f1eac7ea1604d5b49317ff9fa73
Fix VirtualQuery call in case of malloc failure (Win32)

* os_dep.c [!REDIRECT_MALLOC && USE_WINALLOC]
(GC_add_current_malloc_heap): Do not call GC_get_allocation_base(new_l)
if new_l is null; cast malloc() result to the type of new_l.
os_dep.c