how to free the temporary pointer, one creates during the check function?
valgrind
shows error on that particular statement
tried freeing it only when it has reached null, i.e., transverse over all the linked lists but that didn't work. also tried declaring the pointers as global nodes so as to, free them in unload function but that didn't sort it out.
thanks to anyone who gives their time.