CANopenNode / CanOpenSTM32

CANopenNode on STM32 microcontrollers.
Other
275 stars 110 forks source link

fix a memory leak in `canopen_app_init` #40

Open lvsoft opened 11 months ago

lvsoft commented 11 months ago

storage & storageEntrie are created in stack and will be released after canopen_app_init, while registered in CO_storage_init. This is definitely a problem and wasted me 2 days.

mdkendall commented 1 month ago

This is a use-after-free bug rather than a leak, but it definitely is a problem.