Modular And Automated Resource Leak Detection