script to check for memory leaks - runvalgrind