about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-12-03 16:00:59 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-12-03 16:00:59 -0800
commitc7dea9f5a33450de289bf3681ffd1eb3765a92a4 (patch)
treef5e1166cdd591b0e2739b8c50ab1288ae3205efd /src
parent87443b98159fc68eec958e89217a980f1807687f (diff)
downloadteliva-c7dea9f5a33450de289bf3681ffd1eb3765a92a4.tar.gz
.
Diffstat (limited to 'src')
-rw-r--r--src/lua.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua.c b/src/lua.c
index b0129bd..c5b5cb9 100644
--- a/src/lua.c
+++ b/src/lua.c
@@ -95,7 +95,7 @@ char *strdup(const char *s);
 extern void developer_mode (lua_State *L, const char *status_message);
 static int report_in_developer_mode (lua_State *L, int status) {
   if (status && !lua_isnil(L, -1)) {
-    const char *msg = strdup(lua_tostring(L, -1));
+    const char *msg = strdup(lua_tostring(L, -1));  /* memory leak */
     if (msg == NULL) msg = "(error object is not a string)";
     lua_pop(L, 1);
     developer_mode(L, msg);