[evgeny, szilveszter] removed memory leaks