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, 20 Jun 2018 07:56:19 +0000 (10:56 +0300)
commit5f4ebc01c800be6457cc94b9db18fd8c89e830ee
treea3164e67a2a9fbf104e9af2a63b526e678f6e2d3
parentac6d0a5a3fc08747ab017feeea3e08762f4b9e18
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