mirror of
https://github.com/opensim/opensim.git
synced 2026-05-15 11:25:39 +08:00
workaround potencial memory leak
This commit is contained in:
@@ -512,8 +512,8 @@ namespace OpenSim.Services.LLLoginService
|
||||
//
|
||||
if (m_MessageUrl != String.Empty)
|
||||
{
|
||||
WebClient client = new WebClient();
|
||||
processedMessage = client.DownloadString(m_MessageUrl);
|
||||
using(WebClient client = new WebClient())
|
||||
processedMessage = client.DownloadString(m_MessageUrl);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user