mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-27 20:00:35 +08:00
b020be13f6
A large buffer on the heap was not deallocated when parameters were saved, but there were no changes to the parameters. In that case parameter_flashfs_write() was not called, which was previously responsible for freeing the buffer. This patch moves the responsibility of freeing the buffer to the calling side, which already explicitly allocates the buffer.