diff options
author | José Bollo <jose.bollo@iot.bzh> | 2016-06-09 07:52:50 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-06-09 07:52:50 +0200 |
commit | c37c8e6291c36665dd23601a8ce1449afd43e6df (patch) | |
tree | 95d764af245c5f89d3bff83ea5e9c60ca8bcf4fa /plugins/samples/HelloWorld.c | |
parent | 9ee05e42384b34d8626cd8cccfd50538136f369f (diff) |
fix double free error
Change-Id: I2b0ee05f67133c9b089da7ab6d36c0728d1cbe55
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'plugins/samples/HelloWorld.c')
-rw-r--r-- | plugins/samples/HelloWorld.c | 2 |
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"); } |