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.

CC2340R5: Memory leak in Datastream demo?

Part Number: CC2340R5

Tool/software:

Hi team,

Two modification suggest for the data_stream demo in F3 SDK 810:

1. My customer is using the DSS_sendNotification(),it uses malloc and free for the Notification data in every call of GATT_Notification(). But only free the buffer when status if not SUCCESS. I think it should free the data buffer when notification is successful.

2. We find a case when the status is blePending, code stucks in the while and I think it's not proper, becasue when it's blePending, the application should wait and check the status, and send command again when the status is SUCCESS. So I suggest this modification, please leave your comment here.