X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=bindings%2Fsamples%2Fhello3.c;h=ff7da61a9c2d1f287fb96b9b60398d35d66df0d4;hb=036629f2e6306f3e2bb520bc58565d9a9db28a45;hp=131e0e43bbe0377a99f2a98cf2642f55efb45056;hpb=75083317eb9a49eb9b65704c81a90c1cf44544d9;p=src%2Fapp-framework-binder.git diff --git a/bindings/samples/hello3.c b/bindings/samples/hello3.c index 131e0e43..ff7da61a 100644 --- a/bindings/samples/hello3.c +++ b/bindings/samples/hello3.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2015-2018 "IoT.bzh" + * Copyright (C) 2015-2019 "IoT.bzh" * Author "Fulup Ar Foll" * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -627,7 +627,6 @@ static void in_after (afb_req_t request) char *te; double td; struct timespec t; - void (*calling)(afb_req_t); /* get the type */ ty = afb_req_value(request, "type") ?: "call"; @@ -914,6 +913,7 @@ static void api (afb_req_t request) } sapi->api = afb_api_new_api(api, apiname, NULL, 1, apipreinit, NULL); if (!sapi->api) { + free(sapi); afb_req_reply_f(request, NULL, "cant-create", "%m"); goto end; }