Open t123yh opened 5 years ago
Hi, I noticed that in https://github.com/stil/CurlThin/blob/89c94a1358365bdf6b4c722dd48734ca8e4c71f6/CurlThin.Samples/Easy/HttpHeadersSample.cs line 36 you called CurlNative.Slist.FreeAll(headers);. However the SafeSlistHandle itself will call this function in ReleaseHandle() method. Will that cause a double-free?
CurlNative.Slist.FreeAll(headers);
SafeSlistHandle
ReleaseHandle()
Hi, I noticed that in https://github.com/stil/CurlThin/blob/89c94a1358365bdf6b4c722dd48734ca8e4c71f6/CurlThin.Samples/Easy/HttpHeadersSample.cs line 36 you called
CurlNative.Slist.FreeAll(headers);
. However theSafeSlistHandle
itself will call this function inReleaseHandle()
method. Will that cause a double-free?