Checked for memory leaks in programs with multiple connections