component/bt : fix gatt write memory leak

pull/157/merge
Tian Hao 2017-02-15 20:08:39 +08:00
rodzic a65944a8cb
commit 5023e30a33
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -1073,9 +1073,11 @@ void gatts_process_write_req (tGATT_TCB *p_tcb, UINT8 i_rcb, UINT16 handle,
GATTS_REQ_TYPE_WRITE, GATTS_REQ_TYPE_WRITE,
&sr_data); &sr_data);
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 {