From a23e152f6b2c883130bb0a4bfa55ef304294a369 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Fri, 28 Feb 2025 11:17:01 +0100 Subject: [PATCH] plugins: rtc: follow-up to bc8118d, stop timer at shutdown Introduced to work-around systems with broken RTCs, it also introduced a dormant bug in Finit, triggered at shutdown on some systems. The call to dlclose() removed the memory to the rtc_timer which libuev later then referenced. Fixes #429 Signed-off-by: Joachim Wiberg --- plugins/rtc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/rtc.c b/plugins/rtc.c index 85b2789a..8b722698 100644 --- a/plugins/rtc.c +++ b/plugins/rtc.c @@ -338,6 +338,7 @@ PLUGIN_INIT(plugin_init) PLUGIN_EXIT(plugin_exit) { + uev_timer_stop(&rtc_timer); plugin_unregister(&plugin); }