Skip to content

Consider adding a free() function #337

@oold

Description

@oold

Especially in the context of using utf8proc as a shared library, there might be cases where the user's malloc implementation differs from what the utf8proc library uses internally. It's generally considered a good practice to add a deallocation function for data allocated by a library. I'd suggest creating a new function called utf8proc_free().

Examples of such deallocation functions:

Here is why using free() is a bad idea if utf8proc is a shared library (or just built against a different CRT):

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions