From 9953dad3a937e2186683069a9d34f6af99e38e50 Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Mon, 22 Aug 2016 08:16:06 +0100 Subject: workaround potencial memory leak --- OpenSim/Framework/Util.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index 96b91ff..b4a81ac 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs @@ -706,7 +706,9 @@ namespace OpenSim.Framework private static byte[] ComputeSHA1Hash(byte[] src) { SHA1CryptoServiceProvider SHA1 = new SHA1CryptoServiceProvider(); - return SHA1.ComputeHash(src); + byte[] ret = SHA1.ComputeHash(src); + SHA1.Dispose(); + return ret; } public static int fast_distance2d(int x, int y) -- cgit v1.1