Skip to content

Code path causes memory leak #1

Description

@kdhooper

Input validation errors in pyMsplinkOpen have a code path that does not call free(mspDevice.devname).

goto release_mutex_handler;

Proposed solution: Move the mspversion and read_retries validation before malloc().

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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