From: Pavel Rochnyack Date: Wed, 1 May 2019 12:32:14 +0000 (+0700) Subject: lua plugin: free mutex on callback destroy X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=0054089db0e438fb8129f2625a6129b7a73caf9d;p=collectd.git lua plugin: free mutex on callback destroy --- diff --git a/src/lua.c b/src/lua.c index 8dc78d00..d1c00850 100644 --- a/src/lua.c +++ b/src/lua.c @@ -261,6 +261,7 @@ static int lua_cb_dispatch_values(lua_State *L) /* {{{ */ static void lua_cb_free(void *data) { clua_callback_data_t *cb = data; free(cb->lua_function_name); + pthread_mutex_destroy(&cb->lock); free(cb); }