summaryrefslogtreecommitdiff
path: root/src/nfc/tags/rw_t1t.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nfc/tags/rw_t1t.c')
-rw-r--r--src/nfc/tags/rw_t1t.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nfc/tags/rw_t1t.c b/src/nfc/tags/rw_t1t.c
index e7d373e..a7a8001 100644
--- a/src/nfc/tags/rw_t1t.c
+++ b/src/nfc/tags/rw_t1t.c
@@ -295,6 +295,12 @@ void rw_t1t_conn_cback (UINT8 conn_id, tNFC_CONN_EVT event, tNFC_CONN *p_data)
{
rw_t1t_process_error ();
}
+ if((p_data != NULL) && (p_data->data.p_data != NULL))
+ {
+ /* Free the response buffer in case of invalid response*/
+ GKI_freebuf((BT_HDR *) (p_data->data.p_data));
+ p_data->data.p_data = NULL;
+ }
break;
default: