klipper/klippy
Russell Cloran e18091bac3 load_cell_probe: Fix memory leak on some probe failures
In the case where the homing module's `probing_move` raises an
exception, the collector's `_finish_collecting` is never called.
Normally the caller of `LoadCellProbingMove`'s `probing_move` uses the
collector object by calling `collect_until`, which calls
`_finish_collecting` when it is done, but if an exception is raised
before that can be done the collector object keeps receiving samples and
never does anything with them.

This ensures that the collector is stopped if an exception is raised, so
that samples do not accumulate indefinitely.

Signed-off-by: Russell Cloran <rcloran@gmail.com>
2025-08-08 12:05:35 -07:00
..
chelper serialqueue: Be sure sq->name is null terminated 2025-08-01 12:46:32 -04:00
extras load_cell_probe: Fix memory leak on some probe failures 2025-08-08 12:05:35 -07:00
kinematics idex_modes: Fixed dual_carriage axis range calculation after homing 2025-08-03 14:20:10 -04:00
clocksync.py clocksync: Simplify 32bit clock upconversion code 2023-12-10 14:59:13 -05:00
configfile.py configfile: Fix comments on same line as [include xxx.cfg] directive 2024-11-12 21:07:44 -05:00
console.py console: No need to import pins module 2023-01-07 12:00:16 -05:00
gcode.py gcode: Improve checksum detection in get_raw_command_parameters() 2024-12-01 14:16:13 -05:00
klippy.py klippy: Fix missing default parameter of invoke_async_shutdown() 2024-12-02 12:51:51 -05:00
mathutil.py kinematics: Generic Cartesian kinematics implementation (#6815) 2025-05-06 18:06:36 -04:00
mcu.py serialhdl: name the threads per mcu 2025-08-01 12:42:53 -04:00
msgproto.py msgproto: Fix return type for create_command() 2024-11-13 14:24:03 -05:00
parsedump.py parsedump: Support running on both python2 and python3 2022-12-07 14:31:03 -05:00
pins.py pins: Improve pin description checks 2022-05-09 16:33:46 -04:00
queuelogger.py Revert "queuelogger: set thread name" 2025-08-01 13:08:03 -04:00
reactor.py reactor: Fix typo 2023-03-14 22:08:13 -04:00
serialhdl.py serialqueue: name the threads per mcu 2025-08-01 12:42:53 -04:00
stepper.py klippy: fix typos in python code (#6989) 2025-07-25 12:31:19 -04:00
toolhead.py toolhead: Initial support for adding extra axes to toolhead moves 2025-05-12 20:15:03 -04:00
util.py util: report git version info as a dict 2023-05-04 14:07:14 -04:00
webhooks.py klippy: fix typos in python code (#6989) 2025-07-25 12:31:19 -04:00