【发布时间】:2015-10-05 14:17:56
【问题描述】:
您好,我遇到了 Coverity 问题,因为 “释放后使用包装器对象 (WRAPPER_ESCAPE)1。转义:本地 hello 的内部表示转义,但在退出范围时被破坏”请帮助我修复它
extern const char * Helloworld()
{
std::string hello = obj->myfunction();
return hello.c_str(); // this is return to a c function
}
【问题讨论】:
-
相当不言自明的消息,我应该想到的。你具体有什么问题?