aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-06-09 07:52:50 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2016-06-09 07:52:50 +0200
commitc37c8e6291c36665dd23601a8ce1449afd43e6df (patch)
tree95d764af245c5f89d3bff83ea5e9c60ca8bcf4fa /plugins
parent9ee05e42384b34d8626cd8cccfd50538136f369f (diff)
fix double free error
Change-Id: I2b0ee05f67133c9b089da7ab6d36c0728d1cbe55 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/samples/HelloWorld.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/samples/HelloWorld.c b/plugins/samples/HelloWorld.c
index fe117846..e487304f 100644
--- a/plugins/samples/HelloWorld.c
+++ b/plugins/samples/HelloWorld.c
@@ -55,7 +55,7 @@ static void pingEvent(struct afb_req request)
{
json_object *query = afb_req_json(request);
afb_daemon_broadcast_event(interface->daemon, "event", json_object_get(query));
- ping(request, query, "event");
+ ping(request, json_object_get(query), "event");
}