[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: [patch] fixed memory leak in etc/min.c
- From: Roland Illig <roland.illig@...>
- Date: Sun, 17 Oct 2004 09:22:13 +0200
Hi,
the Lua interpreter should be closed after use. (Especially in the
`examples' directory.)
Roland
$NetBSD$
--- etc/min.c.orig 2002-12-17 15:19:48.000000000 +0100
+++ etc/min.c 2004-10-17 09:20:23.000000000 +0200
@@ -42,5 +42,6 @@
lua_register(L,"print",print);
if (lua_load(L,getF,stdin,"=stdin") || lua_pcall(L,0,0,0))
fprintf(stderr,"%s\n",lua_tostring(L,-1));
+ lua_close(L);
return 0;
}