tag:blogger.com,1999:blog-6314876008291942531.post2116061709876214288..comments2024-01-14T00:36:43.430-08:00Comments on Antonio Gulli's coding playground: Malloc and FreeUnknownnoreply@blogger.comBlogger3125tag:blogger.com,1999:blog-6314876008291942531.post-33049324889664303962010-04-27T19:36:57.679-07:002010-04-27T19:36:57.679-07:00How about using tool like valgrind
valgrind --too...How about using tool like valgrind<br /><br />valgrind --tool=memcheck --leak-check=yes --show-reachable=yesAKhttps://www.blogger.com/profile/03552400896683903007noreply@blogger.comtag:blogger.com,1999:blog-6314876008291942531.post-37195354997548809232010-03-25T13:21:15.250-07:002010-03-25T13:21:15.250-07:00any problem in the common pattern?any problem in the common pattern?codingplaygroundhttps://www.blogger.com/profile/08478993186814330588noreply@blogger.comtag:blogger.com,1999:blog-6314876008291942531.post-70376186396690443182010-03-24T06:48:47.343-07:002010-03-24T06:48:47.343-07:00If I have pointed all the free'd pointers to N...If I have pointed all the free'd pointers to NULL and I know the name of all the pointers (say, I had declared them at the beginning of the program) then I would just check which one of them doesn't point to NULL. <br /><br />I am trying to improve my solution. Useful puzzle :)Anonymousnoreply@blogger.com