pass valgrind test

Modified some files to free all allocated blocks
remane method *_destroy to *_del