diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-10-23 12:58:38 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-10-23 12:58:38 -0300 |
commit | ea1322ef5438aa38f16fa00d3ab377811bba5a76 (patch) | |
tree | 66791cf6259f4a5c9fc8dff7664d53ffa8613957 | |
parent | 6a4b9bb2b47a9ca564b986b27d2451e602bc2c5b (diff) | |
download | lua-ea1322ef5438aa38f16fa00d3ab377811bba5a76.tar.gz lua-ea1322ef5438aa38f16fa00d3ab377811bba5a76.tar.bz2 lua-ea1322ef5438aa38f16fa00d3ab377811bba5a76.zip |
Detail: bad assertion in 'luaM_free_'
-rw-r--r-- | lmem.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -108,7 +108,7 @@ l_noret luaM_toobig (lua_State *L) { | |||
108 | */ | 108 | */ |
109 | void luaM_free_ (lua_State *L, void *block, size_t osize) { | 109 | void luaM_free_ (lua_State *L, void *block, size_t osize) { |
110 | global_State *g = G(L); | 110 | global_State *g = G(L); |
111 | lua_assert((block == 0) == (block == NULL)); | 111 | lua_assert((osize == 0) == (block == NULL)); |
112 | (*g->frealloc)(g->ud, block, osize, 0); | 112 | (*g->frealloc)(g->ud, block, osize, 0); |
113 | g->GCdebt -= osize; | 113 | g->GCdebt -= osize; |
114 | } | 114 | } |