討論串RE: cu coredumps
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
> That is actually not strictly true. Some malloc implementations re-use. > the freed memory that was previously assigned to the user for pointers. >
(還有271個字)
內容預覽:
> That's what I thought, but I thought when you called free() it didn't. > actually touch the data there, just mark it as free for other programs. > t
(還有1503個字)
內容預覽:
> tmp_cp = malloc(sizeof(char) * 10);. > cp = tmp_cp. > free(tmp_cp);. > tmp_cp = NULL;. >. > then cp would now be pointing to a block of memory that
(還有430個字)
首頁
上一頁
1
下一頁
尾頁