Merge branch 'bugfix/btdm_gatt' into 'master'

component/bt : fix gatt write memory leak

fix bug of GATT write cause memory leak 

See merge request !506
This commit is contained in:
Jiang Jiang Jian
2017-02-16 15:13:05 +08:00

View File

@@ -1076,6 +1076,8 @@ void gatts_process_write_req (tGATT_TCB *p_tcb, UINT8 i_rcb, UINT16 handle,
if (status == GATT_SUCCESS) { if (status == GATT_SUCCESS) {
attp_send_sr_msg(p_tcb, p_msg); attp_send_sr_msg(p_tcb, p_msg);
gatt_dequeue_sr_cmd(p_tcb); gatt_dequeue_sr_cmd(p_tcb);
} else {
GKI_freebuf(p_msg);
} }
} else { } else {