diff options
Diffstat (limited to 'src/lj_err.c')
-rw-r--r-- | src/lj_err.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lj_err.c b/src/lj_err.c index 0aaf5497..7db37f3b 100644 --- a/src/lj_err.c +++ b/src/lj_err.c | |||
@@ -737,6 +737,7 @@ LJ_NOINLINE void lj_err_mem(lua_State *L) | |||
737 | { | 737 | { |
738 | if (L->status == LUA_ERRERR+1) /* Don't touch the stack during lua_open. */ | 738 | if (L->status == LUA_ERRERR+1) /* Don't touch the stack during lua_open. */ |
739 | lj_vm_unwind_c(L->cframe, LUA_ERRMEM); | 739 | lj_vm_unwind_c(L->cframe, LUA_ERRMEM); |
740 | L->top = L->base; | ||
740 | setstrV(L, L->top++, lj_err_str(L, LJ_ERR_ERRMEM)); | 741 | setstrV(L, L->top++, lj_err_str(L, LJ_ERR_ERRMEM)); |
741 | lj_err_throw(L, LUA_ERRMEM); | 742 | lj_err_throw(L, LUA_ERRMEM); |
742 | } | 743 | } |