From 73c632f00c3ba636c309693db47c6f2e3b64297c Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sat, 3 Apr 2021 21:14:21 +0200 Subject: [PATCH] [lua] called tempname. --- src/scripting/lua/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripting/lua/core.c b/src/scripting/lua/core.c index 7a5b7de5c..1d66daf3c 100644 --- a/src/scripting/lua/core.c +++ b/src/scripting/lua/core.c @@ -265,11 +265,11 @@ l_execute(LS) static int l_tmpname(LS) { - char *fn = tempnam(NULL, "elinks"); + char *fn = tempname(NULL, "elinks", NULL); if (fn) { lua_pushstring(S, fn); - free(fn); + mem_free(fn); return 1; }