View Single Post
Join Date: Jun 2006
Posts: 147
Reputation: Laiq Ahmed will become famous soon enough Laiq Ahmed will become famous soon enough 
Solved Threads: 20
Laiq Ahmed Laiq Ahmed is offline Offline
Junior Poster

Re: Not repeated elements in link list (help)

 
0
  #8
Dec 4th, 2008
because You allocated the element on Heap in the beginning and you should release its memory if its a repeated element otherwise you'd have a memory leak.
Reply With Quote