- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
You need to make a local copy of the pointer to the next before you call free - or put the recursive call at the front .
Admin
I know the guy that wrote this code. He now works for Google.
Admin
-1 point for the wrong "its".
Admin
Admin
Snoop just made a guest appearance on the Martha Stewart Show: Part I Part II
Admin
The main problem is that he is using the pointer after it was freed. Which might work most of the time on non-concurrent enviroments using certain types of allocator, but it's still wrong.
Admin
I went to class with this guy; we were both CS '06 students and were in the same freshman dorm.
Admin
I want a T-shirt with "FreeThisSchnizzle()" written on the front. On the back it will say "I just overflowed my stack."
Admin
That won't compile. It'll fail at readkey, as it is declared in Crt module and you didn't write uses Crt;.