Commit 9a0e58f6 authored by Joey Qiao's avatar Joey Qiao Committed by Hiroki Yamamoto
Browse files

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
parent e94a667d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment