refactoring code
correction for a new version of the memory leaks detection
init of global structure