stil / CurlThin

Lightweight cURL wrapper for C# with support for curl_multi polling interface through libuv
Other
68 stars 18 forks source link

Double-free issue in slist example #10

Open t123yh opened 5 years ago

t123yh commented 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?