Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nativeResource seems not needed #427

Open
freerider7777 opened this issue Sep 8, 2021 · 0 comments
Open

nativeResource seems not needed #427

freerider7777 opened this issue Sep 8, 2021 · 0 comments

Comments

@freerider7777
Copy link

initialized and then just released:
private IntPtr nativeResource = Marshal.AllocHGlobal(100);

if (nativeResource != IntPtr.Zero)
{
Marshal.FreeHGlobal(nativeResource);
nativeResource = IntPtr.Zero;
}

https://github.com/imperugo/StackExchange.Redis.Extensions/blob/master/src/core/StackExchange.Redis.Extensions.Core/Implementations/RedisCacheConnectionPoolManager.cs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant