free ac_connected_cmd and ac_disconnected_cmd on cleanup
Sebastian Reichel sre@ring0.de
1 files changed,
4 insertions(+),
0 deletions(-)
jump to
M
src/battery/battery.c
→
src/battery/battery.c
@@ -168,6 +168,10 @@ free(battery_uwheel_command);
battery_uwheel_command = NULL; free(battery_dwheel_command); battery_dwheel_command = NULL; + free(ac_connected_cmd); + ac_connected_cmd = NULL; + free(ac_disconnected_cmd); + ac_disconnected_cmd = NULL; stop_timeout(battery_timeout); battery_timeout = NULL; battery_found = 0;