From 5bac1a6577423c09fb28b8e13937294fef576cf5 Mon Sep 17 00:00:00 2001 From: Akio Fukubayashi Date: Wed, 4 Sep 2019 18:15:00 +0900 Subject: Fix json Signed-off-by: Akio Fukubayashi --- src/api.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/api.cpp') diff --git a/src/api.cpp b/src/api.cpp index 879feb0..27a8a49 100644 --- a/src/api.cpp +++ b/src/api.cpp @@ -87,8 +87,6 @@ void OnRequestNavicoreGetPosition(afb_req_t req) afb_req_fail(req, "failed", "navicore_getposition Bad Request"); } - // Json object release - json_object_put(response.json_data); AFB_API_NOTICE(req->api, "<-- End %s()", __func__); } @@ -130,8 +128,6 @@ void OnRequestNavicoreGetAllRoutes(afb_req_t req) afb_req_fail(req, "failed", "navicore_getallroutes Bad Request"); } - // json object release - json_object_put(response.json_data); AFB_API_NOTICE(req->api, "<-- End %s()", __func__); } @@ -182,8 +178,6 @@ void OnRequestNavicoreCreateRoute(afb_req_t req) afb_req_fail(req, "failed", "navicore_createroute Bad Request"); } - // json object release - json_object_put(response.json_data); AFB_API_NOTICE(req->api, "<-- End %s()", __func__); } @@ -454,8 +448,6 @@ void OnRequestNavicoreGetAllSessions(afb_req_t req) afb_req_fail(req, "failed", "navicore_getallsessions Bad Request"); } - // json object release - json_object_put(response.json_data); AFB_API_NOTICE(req->api, "<-- End %s()", __func__); } -- cgit 1.2.3-korg