Check the return value from malloc / realloc.
authorTudor Bosman <tudorb@fb.com>
Tue, 5 Jun 2012 05:24:21 +0000 (22:24 -0700)
committerTudor Bosman <tudorb@fb.com>
Tue, 5 Jun 2012 06:36:40 +0000 (23:36 -0700)
commit050c1c3d52e4df860911235ac894291b2c089e59
treeb9027ad31fd453187620ac6cb999477ffd51e041
parente1822c55a928d4bc3a3ba4bddcfdfe20062d8d34
Check the return value from malloc / realloc.

Summary:
https://github.com/facebook/folly/issues/7

Wrappers: checkedMalloc / checkedRealloc / checkedCalloc

Test Plan: all folly tests

FB internal diff: D486841
folly/Arena.h
folly/FBString.h
folly/FBVector.h
folly/Malloc.h
folly/small_vector.h