summaryrefslogtreecommitdiffhomepage
path: root/libs/lmo
diff options
context:
space:
mode:
Diffstat (limited to 'libs/lmo')
-rw-r--r--libs/lmo/src/lmo_lualib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/lmo/src/lmo_lualib.c b/libs/lmo/src/lmo_lualib.c
index 878ca02b2..8d869aa49 100644
--- a/libs/lmo/src/lmo_lualib.c
+++ b/libs/lmo/src/lmo_lualib.c
@@ -35,6 +35,7 @@ static int lmo_L_open(lua_State *L) {
return 1;
}
+ lmo_close(ar);
lua_pushnil(L);
lua_pushstring(L, "out of memory");
return 2;