Skip to content

Double-free issue in slist example #10

@t123yh

Description

@t123yh

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions