diff options
author | Martijn Coenen <maco@google.com> | 2015-11-05 19:39:43 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2015-11-05 19:39:43 +0000 |
commit | 53b8f70e4bb222b85f904f26cc04076242e9244c (patch) | |
tree | 17278e52633347dae422aa1d9b8c9d3af6abd25c | |
parent | a6ee33c7cbd7987f6333505b3093fe7aa2b84625 (diff) | |
parent | 633b73f8909c8bc52868848399d61fa3b8df3e72 (diff) | |
download | libnfc-nci-53b8f70e4bb222b85f904f26cc04076242e9244c.tar.gz |
Don\'t free memory that shouldn\'t be freed.android-6.0.1_r68android-6.0.1_r67android-6.0.1_r62android-6.0.1_r54android-6.0.1_r53android-6.0.1_r45android-6.0.1_r25android-6.0.1_r24android-6.0.1_r22android-6.0.1_r21marshmallow-dr1.6-releasemarshmallow-dr1.5-releasemarshmallow-dr1.5-dev
am: 633b73f890
* commit '633b73f8909c8bc52868848399d61fa3b8df3e72':
Don't free memory that shouldn't be freed.
-rw-r--r-- | src/nfc/tags/rw_t1t.c | 6 | ||||
-rw-r--r-- | src/nfc/tags/rw_t2t.c | 7 |
2 files changed, 0 insertions, 13 deletions
diff --git a/src/nfc/tags/rw_t1t.c b/src/nfc/tags/rw_t1t.c index a7a8001..e7d373e 100644 --- a/src/nfc/tags/rw_t1t.c +++ b/src/nfc/tags/rw_t1t.c @@ -295,12 +295,6 @@ 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: diff --git a/src/nfc/tags/rw_t2t.c b/src/nfc/tags/rw_t2t.c index e6f5b5b..de2de64 100644 --- a/src/nfc/tags/rw_t2t.c +++ b/src/nfc/tags/rw_t2t.c @@ -346,13 +346,6 @@ void rw_t2t_conn_cback (UINT8 conn_id, tNFC_CONN_EVT event, tNFC_CONN *p_data) { rw_t2t_process_error (); } - /* Free the response buffer in case of invalid response*/ - 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: |