Don't free not allocated and not used variable
authorKlaus Ethgen <Klaus@Ethgen.de>
Sun, 29 Dec 2019 09:23:35 +0000 (10:23 +0100)
committerKlaus Ethgen <Klaus@Ethgen.de>
Sun, 29 Dec 2019 09:23:35 +0000 (10:23 +0100)
src/lua.c

index 6851926..f8603d8 100644 (file)
--- 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)