看板 DFBSD_bugs 關於我們 聯絡資訊
> That is actually not strictly true. Some malloc implementations re-use > the freed memory that was previously assigned to the user for pointers > for it's own use. Hence, the next time you use the memory it go boom. > (Well, ok you did say that the user data may not still be accessible, > I'm just making it clear. ;-) ) Thanks for the lesson. I've said before that I'm not as experienced in UNIX internals as the rest of us. My basic point (which I should have spelled out better) was that you don't know the state of memory location, so don't use it. Adrian