]> granicus.if.org Git - gc/commit
Fix realloc_test to check GC_malloc result for NULL
authorIvan Maidanski <ivmai@mail.ru>
Wed, 18 Jan 2012 04:39:17 +0000 (08:39 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 18 Jan 2012 08:50:01 +0000 (12:50 +0400)
commit37d422f55431849eb2abd5ac53539755a7ea2c76
tree454cd2e2559c900612df4644de6258a73eba3cee
parent33dc2ded8886f35b261c4ef3d344eca3d9fe112d
Fix realloc_test to check GC_malloc result for NULL

* tests/realloc_test.c (main): Prevent NULL pointer dereference
(exit with an error message in case of NULL returned by GC_malloc).
tests/realloc_test.c