projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libs/lmo: fix possible resource leak if lua runs out of memory but file is already...
[project/luci.git]
/
libs
/
lmo
/
src
/
lmo_lualib.c
diff --git
a/libs/lmo/src/lmo_lualib.c
b/libs/lmo/src/lmo_lualib.c
index
878ca02
..
8d869aa
100644
(file)
--- 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;