I have to check for memory leaks in the code. So after searching i came across valgrind tool, which can be used for memory leak checks.
From the output I am not able to exactly pin point the areas, as the output was not very clear.
So, will be of great help, if someone can either tell me a way through which i can understand its output or any other tool which i can use to check the memory leaks and gives understandable results
$ valgrind-3.8.1 --tool=memcheck --leak-check=yes --leak-check=full --show-reachable=yes --log-file=valgrind.log event_perf_measurement.pl