hello3: Fix a bug 07/15107/2
authorJosé Bollo <jose.bollo@iot.bzh>
Sun, 8 Jul 2018 16:58:00 +0000 (18:58 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Sun, 8 Jul 2018 19:27:48 +0000 (21:27 +0200)
The request was released without any need.
It came from migration from v2 to v3.

Change-Id: If2558ca247f0db912ce5705fa1fd98f3771dcb1f
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
bindings/samples/hello3.c

index b641b05..f49b336 100644 (file)
@@ -175,7 +175,6 @@ static void subcallcb (void *prequest, int status, json_object *object, afb_req_
                afb_req_fail(request, "failed", json_object_to_json_string(object));
        else
                afb_req_success(request, json_object_get(object), NULL);
-       afb_req_unref(request);
 }
 
 static void subcall (afb_req_t request)