Remove unnecessary free
Crash occurs when call free() to release psUpperNdefMsg->buffer on Deinit(). For ReadNdef, it's not necessary as it will be free when completion. For WriteNdef, the buffer is passed from caller which is not a malloc memory. So it shall not call free() then. Test: Read/Write Mifare tag and turn off/on NFC Bug: 113068296 Change-Id: Iac5243c4117d08a569f8887316bf628cacbbf7e8
Loading
Please sign in to comment