From 036629f2e6306f3e2bb520bc58565d9a9db28a45 Mon Sep 17 00:00:00 2001 From: Jose Bollo Date: Fri, 12 Apr 2019 09:39:34 +0200 Subject: Fix small issues These issues was discovered by static analysis tool. Change-Id: Iea75151c9b1f5e4cb139d2dc4e8a5c8bae5bb303 Signed-off-by: Jose Bollo --- bindings/samples/hello3.c | 1 + 1 file changed, 1 insertion(+) (limited to 'bindings') diff --git a/bindings/samples/hello3.c b/bindings/samples/hello3.c index af194785..ff7da61a 100644 --- a/bindings/samples/hello3.c +++ b/bindings/samples/hello3.c @@ -913,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; } -- cgit 1.2.3-korg