diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-03-22 13:55:35 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2005-03-22 13:55:35 -0300 |
commit | f1eb79fdf48170ecc4f0275f4be46e2a98323e8a (patch) | |
tree | e013287e1c6b3c5bb85de9d0705e73cd083c541d /lua.c | |
parent | 408cb71795ab3e8eabdf5b24917e7fb3e7a97d49 (diff) | |
download | lua-f1eb79fdf48170ecc4f0275f4be46e2a98323e8a.tar.gz lua-f1eb79fdf48170ecc4f0275f4be46e2a98323e8a.tar.bz2 lua-f1eb79fdf48170ecc4f0275f4be46e2a98323e8a.zip |
some line-edit facilities must free the line after its use
Diffstat (limited to 'lua.c')
-rw-r--r-- | lua.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.c,v 1.135 2005/01/10 17:21:10 roberto Exp roberto $ | 2 | ** $Id: lua.c,v 1.136 2005/03/21 18:12:07 roberto Exp roberto $ |
3 | ** Lua stand-alone interpreter | 3 | ** Lua stand-alone interpreter |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -186,6 +186,7 @@ static int pushline (lua_State *L, int firstline) { | |||
186 | lua_pushfstring(L, "return %s", b+1); /* change it to `return' */ | 186 | lua_pushfstring(L, "return %s", b+1); /* change it to `return' */ |
187 | else | 187 | else |
188 | lua_pushstring(L, b); | 188 | lua_pushstring(L, b); |
189 | lua_freeline(L, b); | ||
189 | return 1; | 190 | return 1; |
190 | } | 191 | } |
191 | 192 | ||