mermory leaks "fixes"