From 2ba8908024158fab553c79f3b45b9e4b64845edb Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Sun, 29 Nov 2015 17:55:35 +0100 Subject: degesch: fix timer hook resource leak --- degesch.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/degesch.c b/degesch.c index 4cba07c..4ae824d 100644 --- a/degesch.c +++ b/degesch.c @@ -7747,6 +7747,9 @@ lua_timer_hook_dispatch (void *user_data) plugin->super.name, "timer hook", e->message); error_free (e); } + + // There's no need to keep the hook around once the timer is dispatched + lua_cache_invalidate (L, hook); } // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- cgit v1.2.3-70-g09d2