about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile4
-rw-r--r--src/lua.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile
index b4862f4..5f98020 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -8,7 +8,7 @@
 PLAT= none
 
 CC= gcc
-CFLAGS= -g -O2 -Wall -Wpedantic -Wshadow $(MYCFLAGS) -fsanitize=address
+CFLAGS= -g -O2 -Wall -Wpedantic -Wshadow $(MYCFLAGS)
 AR= ar rc
 RANLIB= ranlib
 RM= rm -f
@@ -53,7 +53,7 @@ $(LUA_A): $(CORE_O) $(LIB_O)
 $(LUA_T): $(LUA_O) $(LUA_A)
 	make -C luasocket linux
 	make -C luasec linux
-	$(CC) -o $@ -fsanitize=address -static-libasan $(MYLDFLAGS) $(LUA_O) $(LUA_A) luasocket/socket.a luasocket/mime.a luasec/ssl.a $(LIBS)
+	$(CC) -o $@ $(MYLDFLAGS) $(LUA_O) $(LUA_A) luasocket/socket.a luasocket/mime.a luasec/ssl.a $(LIBS)
 
 clean:
 	make -C luasocket clean
diff --git a/src/lua.c b/src/lua.c
index 2c88fe5..d3eb29e 100644
--- a/src/lua.c
+++ b/src/lua.c
@@ -513,6 +513,7 @@ int big_picture (lua_State *L) {
       lua_pop(L, 1);  // value
       // leave key on stack for next iteration
     }
+    lua_pop(L, 1);  // history element
   }
 
   // second: menu and other userdata
@@ -532,6 +533,7 @@ int big_picture (lua_State *L) {
       lua_pop(L, 1);  // value
       // leave key on stack for next iteration
     }
+    lua_pop(L, 1);  // history element
   }
 
   // functions by level
@@ -553,6 +555,7 @@ int big_picture (lua_State *L) {
         lua_pop(L, 1);  // value
         // leave key on stack for next iteration
       }
+      lua_pop(L, 1);  // history element
     }
     y += 2;
   }
@@ -574,6 +577,7 @@ int big_picture (lua_State *L) {
       lua_pop(L, 1);  // value
       // leave key on stack for next iteration
     }
+    lua_pop(L, 1);  // history element
   }
 
   lua_settop(L, 0);