There's a small bug in the HTTPReequester C++ client code, allocating too much memory. I marked the line below with the fix.
std::stringHttpRequesterCURL::getDataFromResponse(cocos2d::network::HttpResponse* pResponse) { std::string sRetValue; size_t tSize = pResponse->getResponseData()->size(); char* pData = reinterpret_cast<char*>(malloc(sizeof(char*) * (tSize + 1))); // <---- Should be sizeof(char) if (tSize) memcpy(pData, &(*pResponse->getResponseData())[0], tSize); pData[tSize] = 0; sRetValue = pData; free(pData); return sRetValue; }