diff --git a/app/lib/a_process/pd_hf.c b/app/lib/a_process/pd_hf.c index 3f50ba0..cb8948b 100755 --- a/app/lib/a_process/pd_hf.c +++ b/app/lib/a_process/pd_hf.c @@ -317,8 +317,8 @@ void _hf_recv_heartbeat(uint8_t slot, char *pkt, uint16_t len) dau_data_send(dau, &head_data); /* 申请内存 */ - data = XMALLOC(MTYPE_CSG, sizeof(hf_heartbeat_t)); - if (!data) + param = XMALLOC(MTYPE_CSG, sizeof(hf_heartbeat_t)); + if (!param) { DBG(DBG_M_PD_HF_ERR, "XMALLOC ERROR!\r\n"); return;