aboutsummaryrefslogtreecommitdiffstats
path: root/signal-composer-binding/signal-composer-binding.cpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-08-07 19:21:18 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-08-07 19:23:49 +0200
commit060f6b9d62939600a787bba60bf8bf92a6dbc63f (patch)
tree39e5782ed93c4154283329d4bca7c5112eb635af /signal-composer-binding/signal-composer-binding.cpp
parentcf49bd158d6b71313fbfa97bb108e4b812f2093e (diff)
Fix: segfault after adding new objects
This let the application framework handle the JSON object lifetime. Change-Id: Iff48f478d71e71e25ed79d2c7c13b45a7b6a7bf9 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'signal-composer-binding/signal-composer-binding.cpp')
-rw-r--r--signal-composer-binding/signal-composer-binding.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/signal-composer-binding/signal-composer-binding.cpp b/signal-composer-binding/signal-composer-binding.cpp
index 0603656..a9be63e 100644
--- a/signal-composer-binding/signal-composer-binding.cpp
+++ b/signal-composer-binding/signal-composer-binding.cpp
@@ -211,7 +211,6 @@ void addObjects(afb_req request)
return;
}
}
- json_object_put(objectsJ);
afb_req_success(request, NULL, NULL);
}
else