Fix for compile with debug disabled on OSX.
Clarify use of malloc()/realloc() and comment on it.
Merge lp:~tangent-org/gearmand/1.2-build/ Build: jenkins-Gearmand-385