Hey guys I am having problems with memory management...
Each time I call the createNode function I allocate memory on the heap with the temp node pointer. How can I delete this pointer to free up the memory that I needed. How can I prevent a memory leak.