diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2009-12-29 12:42:34 +0100 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2009-12-29 12:42:34 +0100 |
commit | 1403110661fc72bc9a9fd43c8d0602257900d4e7 (patch) | |
tree | 0c712956ce92e49ae13befe180fa96cf0af9fbad /lib | |
parent | a4b350c70586a26e16c1742741e72852bda1b563 (diff) |
Wow... what a leak.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/LuaHandle.cc | 1 |
1 files changed, 1 insertions, 0 deletions
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); |