summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/LuaHandle.cc1
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);