From eaf8c0808d54d987a532254887919822438b7848 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Mon, 10 Dec 2018 15:09:35 +0100 Subject: memleak fixes Change-Id: I575d87bf0770f24f2c7ddd6fba9b7917aad62c6d Signed-off-by: Romain Forlot --- ctl-lib/ctl-event.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ctl-lib/ctl-event.c') 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 -- cgit 1.2.3-korg