这是indexloc提供的服务,不要输入任何密码
Skip to content

Memory leak #2

@0xAF

Description

@0xAF

(*argv)[*argc] = NULL;/*XXX*/

This will leak memory, since the free() will not free the NULL-ed pointer of the last argv[argc].
I'm not sure this line is needed at all.

Thanks for the library!

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