cJSON_Print still allocates so you need to free the original. When you make a std::string from a const char*, it copies to new memory.
確定! 回上一頁