Memory leaks detection implemented