mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 10:48:51 +00:00
d7a16f4c11
Summary: There were a few places where we were calling malloc/reallaoc/free without including cstdlib (or stdlib.h). This is broken, but it worked because other headers that we were including included stdlib.h. However, on a platform where this wasn't true, it broke the Thrift build. This change adds the proper includes. It also changes malloc to std::malloc (same with realloc and free) in a few places, because that is the correct way of doing it when you include cstdlib. Reviewed By: mcslee Test Plan: Compiled Thrift. Revert Plan: ok Other Notes: This bug was noticed by a Thrudb user, and the patch was sent in by Ross McFarland. git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665487 13f79535-47bb-0310-9956-ffa450edef68 |
||
---|---|---|
.. | ||
cocoa/src | ||
cpp | ||
csharp | ||
erl | ||
hs | ||
java | ||
ocaml | ||
perl | ||
php | ||
py | ||
rb | ||
st | ||
Makefile.am |