diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2018-07-23 17:32:04 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-07-23 15:38:53 +0000 |
commit | c3d7de27a97f4d4ba7de818d2da3775a85973ee7 (patch) | |
tree | e9b2cc801b9410a43c6fe0cf84b6d66a8258af4a /ctl-lib/ctl-plugin.c | |
parent | a58d83be3c4dc0ea780ab4094b12dd9d125368bc (diff) |
Release arguments once C function returned.
There was a leack after poping arguments from Lua interpreter.
Now when a Lua2C function is called, if there is something to keep
from the argument then you should call json_object_get() on it
to preserve it.
Change-Id: I43e79ed73a507ac2ca7ed4cdc3f16ec009392194
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'ctl-lib/ctl-plugin.c')
0 files changed, 0 insertions, 0 deletions