Skip to content

Code path causes memory leak #1

@kdhooper

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().

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions