Input validation errors in `pyMsplinkOpen` have a code path that does not call `free(mspDevice.devname)`. https://github.com/hooper-engineering/python-msptools/blob/e9255b6c1a0327160a1de8e9dcde8e116e74eb94/msplink/msplink.c#L260 Proposed solution: Move the `mspversion` and `read_retries` validation *before* `malloc()`.
Input validation errors in
pyMsplinkOpenhave a code path that does not callfree(mspDevice.devname).python-msptools/msplink/msplink.c
Line 260 in e9255b6
Proposed solution: Move the
mspversionandread_retriesvalidation beforemalloc().