Hacker News new | ask | show | jobs
by coliveira 1172 days ago
Using a freed pointer is incorrect behavior, a bug in shorter terms. If you do anything with a freed pointer (other than assigning new memory), you're inviting all kinds of bugs (independent of what the compiler might be doing with your code).
1 comments

Obviously dereferencing a freed pointer is incorrect behavior, but what harm is there in using its numerical value?