From 208ae0f26408abe7f63a95bc28cb8e0bdb673efa Mon Sep 17 00:00:00 2001 From: vnugent Date: Mon, 27 Mar 2023 02:20:16 -0400 Subject: Native heap api and alloc optimizations --- lib/VNLib.Plugins.Extensions.Loading/src/VaultSecrets.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/VNLib.Plugins.Extensions.Loading/src') diff --git a/lib/VNLib.Plugins.Extensions.Loading/src/VaultSecrets.cs b/lib/VNLib.Plugins.Extensions.Loading/src/VaultSecrets.cs index 25e30ea..4cf1c9d 100644 --- a/lib/VNLib.Plugins.Extensions.Loading/src/VaultSecrets.cs +++ b/lib/VNLib.Plugins.Extensions.Loading/src/VaultSecrets.cs @@ -330,7 +330,7 @@ namespace VNLib.Plugins.Extensions.Loading _ = secret ?? throw new ArgumentNullException(nameof(secret)); //Temp buffer - using UnsafeMemoryHandle buffer = MemoryUtil.UnsafeAlloc(secret.Result.Length); + using UnsafeMemoryHandle buffer = MemoryUtil.UnsafeAlloc(secret.Result.Length); //Get base64 if(!Convert.TryFromBase64Chars(secret.Result, buffer, out int count)) -- cgit