about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lua.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lua.c b/src/lua.c
index 6a12fbf..04de892 100644
--- a/src/lua.c
+++ b/src/lua.c
@@ -339,7 +339,9 @@ static int handle_image (lua_State *L, char **argv, int n) {
       status = dostring(L, value, key);
       if (status != 0) return report(L, status);
     }
+    lua_pop(L, 1);
   }
+  lua_pop(L, 1);
   /* call main() */
   lua_getglobal(L, "main");
   status = docall(L, 0, 1);