Skip to content

Fixes a double-free issue in CloseProxmark#617

Merged
pwpiwi merged 1 commit intoProxmark:masterfrom
micolous:double-free-fix
Jun 4, 2018
Merged

Fixes a double-free issue in CloseProxmark#617
pwpiwi merged 1 commit intoProxmark:masterfrom
micolous:double-free-fix

Conversation

@micolous
Copy link
Contributor

@micolous micolous commented Jun 4, 2018

  • CloseProxmark now clears global state (sp and serial_port_name).
  • CloseProxmark now checks for a non-null sp before calling uart_close, to avoid unintentional double-free'ing sp.
  • main now calls CloseProxmark once.

This fixes a crash-on-exit on OSX. This was split from #615.

- CloseProxmark now clears global state.

- CloseProxmark now checks for a non-null serial_port before calling uart_close, to avoid unintentional double-free'ing serial_port.

- main now calls CloseProxmark once.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants