aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lua/lua_tcp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lua/lua_tcp.c b/src/lua/lua_tcp.c
index 9cb246df4..5e07c75dd 100644
--- a/src/lua/lua_tcp.c
+++ b/src/lua/lua_tcp.c
@@ -851,6 +851,7 @@ lua_tcp_arg_toiovec (lua_State *L, gint pos, struct lua_tcp_cbdata *cbd,
dtor = g_slice_alloc0 (sizeof (*dtor));
dtor->dtor = g_free;
dtor->data = (void *)vec->iov_base;
+ LL_PREPEND (cbd->dtors, dtor);
memcpy (vec->iov_base, str, len);
vec->iov_len = len;
}