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

Double-free issue in slist example #10

Open
t123yh opened this issue Nov 10, 2018 · 0 comments
Open

Double-free issue in slist example #10

t123yh opened this issue Nov 10, 2018 · 0 comments

Comments

@t123yh
Copy link

t123yh commented Nov 10, 2018

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?

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