detect memory leaks by reading logs