degesch: fix timer hook resource leak

This commit is contained in:
Přemysl Eric Janouch 2015-11-29 17:55:35 +01:00
parent 4a287a724e
commit 2ba8908024

View File

@ -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);
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -