Fixed possible memory leaks

Simple detection for the same log lines

Code fix

(0) -30 -10 -3 +3 +10 +30 +100 +300 tip

mercurial