mobile: Fix memory leak when not using a LUA script
commit8b9d3170ff265c934f6271bd445ff5a6788ffffb
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>
Fri, 23 Feb 2018 07:31:25 +0000 (23 07:31 +0000)
committerHarald Welte <laforge@gnumonks.org>
Fri, 23 Feb 2018 08:43:21 +0000 (23 08:43 +0000)
tree5e5d0a9a3c24189f92f9f4f8b74f7562e3333f87
parentaf4bad3125724b585763f94718f3f5c5d3b94f23
mobile: Fix memory leak when not using a LUA script

The primitives are still allocated and dispatched but there was
no script handler to delete them. Change the ownership to delete
it at the end of the dispatch.

Change-Id: I510af13bcbb46f73a0a289f26a4921cc90bd986a
Fixes: OS#2925
src/host/layer23/src/mobile/primitives.c
src/host/layer23/src/mobile/script_lua.c