commit | ea1322ef5438aa38f16fa00d3ab377811bba5a76 | [log] [tgz] |
---|---|---|
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | Tue Oct 23 12:58:38 2018 -0300 |
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | Tue Oct 23 12:58:38 2018 -0300 |
tree | 66791cf6259f4a5c9fc8dff7664d53ffa8613957 | |
parent | 6a4b9bb2b47a9ca564b986b27d2451e602bc2c5b [diff] |
Detail: bad assertion in 'luaM_free_'
diff --git a/lmem.c b/lmem.c index 7751870..53f8dcb 100644 --- a/lmem.c +++ b/lmem.c
@@ -108,7 +108,7 @@ */ 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; }