plug memory leaks
update leaks check
plug memory leak