From c7dea9f5a33450de289bf3681ffd1eb3765a92a4 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Fri, 3 Dec 2021 16:00:59 -0800 Subject: [PATCH] . --- src/lua.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);