memory anti-leak small lib