Skip to content

Code path causes memory leak #1

@daniel214

Description

@daniel214

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

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions