workaround potencial memory leak

This commit is contained in:
UbitUmarov
2016-08-22 06:06:13 +01:00
parent 5d5bad5fc1
commit 27dcb01b2e

View File

@@ -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
{