|
|
|
|
复制本帖HTML代码
|
高亮:
今天贴
X 昨天贴
X 前天贴
X |
2nd case:
double * darray = new double[1];
should be:
double * darray = new double[2];
double[1] needs only 8 bytes, so first chunk (released when you delete flag) is reused.
change double[2] still does not generate segfault.
.
|
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法! |
|
|