aboutsummaryrefslogtreecommitdiffstats
path: root/ctl-lib/ctl-event.c
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-12-10 15:09:35 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2018-12-13 15:02:55 +0100
commiteaf8c0808d54d987a532254887919822438b7848 (patch)
tree49ebc2357bef5a154f5716f0a4c68fdc62efe4d8 /ctl-lib/ctl-event.c
parent128a72b79eee725454ac631e1b6a87908cee9620 (diff)
memleak fixes
Change-Id: I575d87bf0770f24f2c7ddd6fba9b7917aad62c6d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'ctl-lib/ctl-event.c')
-rw-r--r--ctl-lib/ctl-event.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ctl-lib/ctl-event.c b/ctl-lib/ctl-event.c
index 1bed333..d17bd3c 100644
--- a/ctl-lib/ctl-event.c
+++ b/ctl-lib/ctl-event.c
@@ -57,7 +57,7 @@ void CtrlDispatchApiEvent (AFB_ApiT apiHandle, const char *evtLabel, struct json
source.request = NULL;
// Best effort ignoring error to exec corresponding action
- (void) ActionExecOne (&source, &actions[idx], json_object_get(eventJ));
+ (void) ActionExecOne (&source, &actions[idx], eventJ);
}
#else
@@ -80,7 +80,7 @@ void CtrlDispatchV2Event(const char *evtLabel, json_object *eventJ) {
source.request = AFB_ReqNone;
// Best effort ignoring error to exec corresponding action
- (void) ActionExecOne (&source, &actions[index], json_object_get(eventJ));
+ (void) ActionExecOne (&source, &actions[index], eventJ);
}
#endif