Fix CLI Segfault
Reporter: RobertBColton | Status: closed | Last Modified: September 30, 2017, 02:47:35 pmThe YAML was being built as an std::string and then returning .c_str()
which is obviously a memory leak. Hence, don't ever rely on a function that returns .c_str()
. I just changed the function to return std::string and then call the API function by passing .c_str()
.
Leave a commentView this issue on GitHub
Please sign in to post comments, or you can view this issue on GitHub.