matlab2c icon indicating copy to clipboard operation
matlab2c copied to clipboard

Matrix str2matrix(string str) 有内存泄露

Open korman opened this issue 6 years ago • 0 comments

return Matrix r(1,num,date_temp); 这个date_temp没有释放

建议如下修改:

Matrix r(1,num,date_temp); delete [] date_temp; date_temp = 0;

korman avatar Apr 10 '19 01:04 korman