[sr-dev] git:5.5:23470fcc: app_lua: fix crash on exausted memory scenario