From b73edfadb0f6666614e2173cef97bf4d8c0e6729 Mon Sep 17 00:00:00 2001 From: Klaus Ethgen Date: Sun, 29 Dec 2019 10:23:35 +0100 Subject: [PATCH] Don't free not allocated and not used variable --- src/lua.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/lua.c b/src/lua.c index 6851926f..f8603d8f 100644 --- a/src/lua.c +++ b/src/lua.c @@ -267,7 +267,6 @@ gchar *lua_callvalue(FileData *fd, const gchar *file, const gchar *function) { gint result; gchar *data = NULL; - gchar *dir; gchar *path; FileData **image_data; gchar *tmp; @@ -312,7 +311,6 @@ gchar *lua_callvalue(FileData *fd, const gchar *file, const gchar *function) { result = luaL_dofile(L, path); g_free(path); - g_free(dir); } if (result) -- 2.20.1