mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-12-06 09:11:07 +08:00
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.