nfc-tools / libnfc

Platform independent Near Field Communication (NFC) library
http://nfc-tools.org
GNU Lesser General Public License v3.0
1.64k stars 436 forks source link

Refactor HAL macro and fix memory leak in nfc_initiator_select_passive_target() #705

Closed thewetzel closed 4 months ago

thewetzel commented 8 months ago

This pull request is intended to fix the memory leak in nfc_initiator_select_passive_target() and refactor the HAL macro (to avoid returning from a macro) by using gcc statement expressions and close my issue.