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.

Freeing pointer from AssocMakeList

Other Parts Discussed in Thread: CC2530, Z-STACK

Hi,

I use AssocMakeList to get a list of the short addresses of all associated devices.

In AssocList.h it clearly says:

/*
 * AssocMakeList - Make a list of associate devices
 *  NOTE:  this function returns a dynamically allocated buffer
 *         that MUST be deallocated (osal_mem_free).
 */
extern uint16 *AssocMakeList( byte *pCount );

When I try to free this pointer the osal_mem_free function always fails at:

HAL_ASSERT(hdr->hdr.inUse);

Is the information in AssocList.h still correct?

Thanks,

Felix

Edit: z-Stack 2.5.1 on cc2530