eclipse-wakaama / wakaama

Eclipse Wakaama is a C implementation of the Open Mobile Alliance's LightWeight M2M protocol (LWM2M).
BSD 3-Clause "New" or "Revised" License
498 stars 374 forks source link

Fix memory leak of bootstrap CoAP payload #753

Closed mlasch closed 5 months ago

mlasch commented 8 months ago

Fix a memory leak, caused by the temporary CoAP payload data (send by bootstrap server) not deallocated.

See: https://github.com/eclipse/wakaama/issues/701

This is a rebase of https://github.com/eclipse/wakaama/pull/702, adjusted code format as well.