From 1403110661fc72bc9a9fd43c8d0602257900d4e7 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Tue, 29 Dec 2009 12:42:34 +0100 Subject: Wow... what a leak. --- lib/LuaHandle.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/LuaHandle.cc b/lib/LuaHandle.cc index 13668b5..207c4e7 100644 --- a/lib/LuaHandle.cc +++ b/lib/LuaHandle.cc @@ -259,6 +259,7 @@ int sLuaHandle::readstring(lua_State * __L) { char * t = (char *) malloc(s + 1); h->read(t, s); L->push(t, s); + free(t); } else { (*h) >> r; L->push(r); -- cgit v1.2.3