aboutsummaryrefslogtreecommitdiffstats
path: root/ctl-lib/ctl-plugin.c
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-12-04 17:30:02 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2017-12-11 13:42:51 +0100
commit9242abc75aab5baf04fc07175f3301ac7dbb8e4b (patch)
treecb4765b2167eecc37e3964298412cb639d34726d /ctl-lib/ctl-plugin.c
parent5a591bb47bdc9d6e2eceda127a749b8bdb92b1a7 (diff)
Avoid compile warning, memory leaks, linting
Change-Id: Ida18aeab20d5b894609c1a9c2f6fc2a71a0b4a23 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'ctl-lib/ctl-plugin.c')
-rw-r--r--ctl-lib/ctl-plugin.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ctl-lib/ctl-plugin.c b/ctl-lib/ctl-plugin.c
index 6ec1ace..be3cf67 100644
--- a/ctl-lib/ctl-plugin.c
+++ b/ctl-lib/ctl-plugin.c
@@ -206,9 +206,12 @@ STATIC int PluginLoadOne (AFB_ApiT apiHandle, CtlPluginT *ctlPlugin, json_object
ctlPlugin->api = apiHandle;
ctlPlugin->context = (*ctlPluginOnload) (ctlPlugin, handle);
}
+
+ json_object_put(pluginPathJ); // No more needs for that json_object.
return 0;
OnErrorExit:
+ json_object_put(pluginPathJ); // No more needs for that json_object.
return 1;
}