summaryrefslogtreecommitdiff
path: root/src/if_lua.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/if_lua.c')
-rw-r--r--src/if_lua.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/if_lua.c b/src/if_lua.c
index b80b6c9e2..1eb7a77a1 100644
--- a/src/if_lua.c
+++ b/src/if_lua.c
@@ -841,8 +841,7 @@ luaV_list_newindex(lua_State *L)
if (lua_isnil(L, 3)) // remove?
{
vimlist_remove(l, li, li);
- clear_tv(&li->li_tv);
- vim_free(li);
+ listitem_free(l, li);
}
else
{