degesch: fix timer hook resource leak
This commit is contained in:
parent
4a287a724e
commit
2ba8908024
@ -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);
|
||||
}
|
||||
|
||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
Loading…
Reference in New Issue
Block a user