3 ms·
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
by coliveira 4y 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).
- xigoi 4y agoObviously dereferencing a freed pointer is incorrect behavior, but what harm is there in using its numerical value?