From f1eb79fdf48170ecc4f0275f4be46e2a98323e8a Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 22 Mar 2005 13:55:35 -0300 Subject: some line-edit facilities must free the line after its use --- lua.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lua.c') diff --git a/lua.c b/lua.c index 42d94cfe..4a5d8f5f 100644 --- a/lua.c +++ b/lua.c @@ -1,5 +1,5 @@ /* -** $Id: lua.c,v 1.135 2005/01/10 17:21:10 roberto Exp roberto $ +** $Id: lua.c,v 1.136 2005/03/21 18:12:07 roberto Exp roberto $ ** Lua stand-alone interpreter ** See Copyright Notice in lua.h */ @@ -186,6 +186,7 @@ static int pushline (lua_State *L, int firstline) { lua_pushfstring(L, "return %s", b+1); /* change it to `return' */ else lua_pushstring(L, b); + lua_freeline(L, b); return 1; } -- cgit v1.2.3-55-g6feb