aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-11-29 17:55:35 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2015-11-29 17:55:35 +0100
commit2ba8908024158fab553c79f3b45b9e4b64845edb (patch)
tree134a663210e47a0493756b3751686439bba7ae65
parent4a287a724e257dbc9cd9b8a0c48bd15451acd2fe (diff)
downloadxK-2ba8908024158fab553c79f3b45b9e4b64845edb.tar.gz
xK-2ba8908024158fab553c79f3b45b9e4b64845edb.tar.xz
xK-2ba8908024158fab553c79f3b45b9e4b64845edb.zip
degesch: fix timer hook resource leak
-rw-r--r--degesch.c3
1 files changed, 3 insertions, 0 deletions
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);
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -