Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C Programming
How to know the memory pointed by a ptr is freed?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Ravi Uday, post: 2383941"] Thats what the OP wanted, to know whether the pointer is valid. I think the system/OS can fill the first word in the header of a freed block with some bit pattern (0xdeadbeef) before returning the call (free()) to the user So seeing the memory dump of the pointer might be of clue. Of-course you shouldnt de-reference the pointer once the free() returns ! [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C Programming
How to know the memory pointed by a ptr is freed?
Top