diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2018-07-23 17:32:04 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2018-12-13 15:02:55 +0100 |
commit | 7fd47c1f35871041ef8959c0591fcd8cd5cff724 (patch) | |
tree | e9b2cc801b9410a43c6fe0cf84b6d66a8258af4a /ctl-lib/ctl-lua.h | |
parent | 97e31a3f1ce9d884ac043e570f54caaa47bf88f5 (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-lua.h')
0 files changed, 0 insertions, 0 deletions