afb-api-v3: Fix a bug introduced by 8ca7b69 01/15101/2
authorJose Bollo <jose.bollo@iot.bzh>
Fri, 6 Jul 2018 14:11:25 +0000 (16:11 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Sun, 8 Jul 2018 19:27:48 +0000 (21:27 +0200)
commit10ac2105ecc20251b13bdc6f6c78c3e2edb8dfef
tree8137763bc79ae0f0637f00c6197af68df877f7ac
parent7491c74e40512564bc361618a6f3d7e238b34dea
afb-api-v3: Fix a bug introduced by 8ca7b69

This bug returned a wrong OpenAPI description
and produced a memory leaak.

It it could be good to rewrite this part using
wrap_json_pack.

Change-Id: Ie0cf03e4434f8674273e9fac3c49a0f9c8196eac
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
src/afb-api-v3.c