Timeline for segfault while freeing memory in speller
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 25, 2014 at 19:48 | comment | added | Mauro |
Indeed the answer provided here led me to a better understanding of the memory management in my program. Finally I could end dictionary.c, although I still have a 8Byte memory leak, for which I'll address another thread. Whatever be the case, my initial algorithm wasn't totally wrong, I just had to advance current (current = current -> next ) and then just free temp , which was the memory I was trying to free in that iteration. Thanks a lot!!! Cheers
|
|
Sep 25, 2014 at 19:44 | vote | accept | Mauro | ||
Sep 23, 2014 at 20:00 | comment | added | Mauro | Sorry I hadn't marked as solved despite marking your answer as useful Kareem. Your response certainly gave me some insight in this problem and I'm trying to come to a better solution than trasverse the entire list and release backwards. I'm short on time this days, but I'll contribute to an answer and mark the thread as solved soon. Thanks a lot Kareem!!! Really!! Outstanding job!! Cheers | |
Sep 19, 2014 at 8:56 | history | answered | kzidane | CC BY-SA 3.0 |