diff options
| author | Philipp Janda <siffiejoe@gmx.net> | 2016-02-24 00:48:43 +0100 |
|---|---|---|
| committer | Philipp Janda <siffiejoe@gmx.net> | 2016-02-24 00:48:43 +0100 |
| commit | 9fe38c654f6c62a4f11d993bd79c710af9313fbd (patch) | |
| tree | 7c1aea50fa13a93d631c24555a705dcf3e3308be /src | |
| parent | 9ffd96724da09352abe99c8525bbccb6bc34cb48 (diff) | |
| download | luasocket-9fe38c654f6c62a4f11d993bd79c710af9313fbd.tar.gz luasocket-9fe38c654f6c62a4f11d993bd79c710af9313fbd.tar.bz2 luasocket-9fe38c654f6c62a4f11d993bd79c710af9313fbd.zip | |
Don't swallow errors in finalizers.
Diffstat (limited to 'src')
| -rw-r--r-- | src/except.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/except.c b/src/except.c index def35a0..309f8f0 100644 --- a/src/except.c +++ b/src/except.c | |||
| @@ -49,7 +49,7 @@ static void wrap(lua_State *L) { | |||
| 49 | static int finalize(lua_State *L) { | 49 | static int finalize(lua_State *L) { |
| 50 | if (!lua_toboolean(L, 1)) { | 50 | if (!lua_toboolean(L, 1)) { |
| 51 | lua_pushvalue(L, lua_upvalueindex(1)); | 51 | lua_pushvalue(L, lua_upvalueindex(1)); |
| 52 | lua_pcall(L, 0, 0, 0); | 52 | lua_call(L, 0, 0); |
| 53 | lua_settop(L, 2); | 53 | lua_settop(L, 2); |
| 54 | wrap(L); | 54 | wrap(L); |
| 55 | lua_error(L); | 55 | lua_error(L); |
