lua: fix stack leak in ubus method handling
Signed-off-by: Chen Bin <ewolfok@126.com> Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
parent
1d2b3bbdbe
commit
8bb34756ce
1 changed files with 3 additions and 2 deletions
|
@ -302,7 +302,8 @@ ubus_method_handler(struct ubus_context *ctx, struct ubus_object *obj,
|
|||
lua_call(state, 2, 1);
|
||||
if (lua_isnumber(state, -1))
|
||||
rv = lua_tonumber(state, -1);
|
||||
} else
|
||||
}
|
||||
|
||||
lua_pop(state, 1);
|
||||
|
||||
return rv;
|
||||
|
|
Loading…
Reference in a new issue