shithub: lu9-p9

Download patch

ref: 21cbbb0f5ac29f141d12f85da6ecabcd9af1ab85
parent: d17daacab44a60e9e46ea0562e336ac40338cfe4
author: kvik <[email protected]>
date: Fri Apr 23 06:26:01 EDT 2021

common: avoid polluting the stack

--- a/base/common.c
+++ b/base/common.c
@@ -82,5 +82,6 @@
 	
 	lua_getfield(L, LUA_REGISTRYINDEX, "p9-buffer");
 	buf = lua_touserdata(L, -1);
+	lua_pop(L, 1);
 	return resizebuffer(L, buf, sz)->b;
 }