2. When you malloc, you use 'two.sizeof' and 'ten.sizeof'. Integers are 4 bytes, so you were allocating 4 bytes for each of these (not 2 or 10 bytes as is alluded to above).Yeah, my mistake. I saw the mistake but could not describe it correctly. :)
Re: Issue with free() for linked list implementation
Namespace via Digitalmars-d-learn Mon, 06 Apr 2015 09:11:07 -0700
- Issue with free() for linked ... Kitt via Digitalmars-d-learn
- Re: Issue with free() fo... Namespace via Digitalmars-d-learn
- Re: Issue with free(... Kitt via Digitalmars-d-learn
- Re: Issue with f... Namespace via Digitalmars-d-learn
- Re: Issue with f... Gary Willoughby via Digitalmars-d-learn
- Re: Issue wi... Namespace via Digitalmars-d-learn
- Re: Iss... bearophile via Digitalmars-d-learn
- Re:... Namespace via Digitalmars-d-learn
- Re: Issue with f... Steven Schveighoffer via Digitalmars-d-learn
- Re: Issue wi... Namespace via Digitalmars-d-learn