mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-08-07 02:10:27 +00:00
Add freeing memory in redbean LuaEncodeUrl
This commit is contained in:
parent
eed710020b
commit
7e4d66e352
1 changed files with 1 additions and 0 deletions
|
@ -4637,6 +4637,7 @@ static int LuaEncodeUrl(lua_State *L) {
|
|||
}
|
||||
data = EncodeUrl(&h, &size);
|
||||
lua_pushlstring(L, data, size);
|
||||
free(h.params.p);
|
||||
free(data);
|
||||
} else {
|
||||
lua_pushnil(L);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue