Test by valgrind

Memeory checked done