SafeEasyHandler is defined as
private SafeEasyHandle() : base(IntPtr.Zero, false)
So handle isnt owed by SafeHandle and ReleaseHandle will be not called.
Then CurlNative.Easy.Cleanup(handle); missed in all examples (for multi is the same ).
Or just change to
private SafeEasyHandle() : base(IntPtr.Zero, true)
Hello,
SafeEasyHandler is defined as private SafeEasyHandle() : base(IntPtr.Zero, false)
So handle isnt owed by SafeHandle and ReleaseHandle will be not called. Then CurlNative.Easy.Cleanup(handle); missed in all examples (for multi is the same ). Or just change to private SafeEasyHandle() : base(IntPtr.Zero, true)