mirror of
https://github.com/lua/lua
synced 2024-11-22 12:51:30 +03:00
Detail: bad assertion in 'luaM_free_'
This commit is contained in:
parent
6a4b9bb2b4
commit
ea1322ef54
2
lmem.c
2
lmem.c
@ -108,7 +108,7 @@ l_noret luaM_toobig (lua_State *L) {
|
||||
*/
|
||||
void luaM_free_ (lua_State *L, void *block, size_t osize) {
|
||||
global_State *g = G(L);
|
||||
lua_assert((block == 0) == (block == NULL));
|
||||
lua_assert((osize == 0) == (block == NULL));
|
||||
(*g->frealloc)(g->ud, block, osize, 0);
|
||||
g->GCdebt -= osize;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user