This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

'ZDP_NwkAddrReq' in the Zstack cause memory leak

Other Parts Discussed in Thread: CC2530

hardware: cc2530,  software: zstack2.5.1a, znp,

i send nwkAddrReq command from the host every 5 seconds, but after about 120 times, the afDataConfirm return an error message, 0x1a, that is means  the operation could not be completed because no memory resources were available.

I print the total number of heap usage on every command, the heap usage will add, most of time, it will add 0xf byte, after about 120 times, there is no memory.

if I delete 'ZDP_NwkAddrReq' in the function 'MT_ZdoNWKAddressRequest' , then there is no problem,

I think this can indicate that the function 'ZDP_NwkAddrReq'  cause memory leak,

how to resolve the issue?

Thank you in advance.