diff options
author | José Bollo <jose.bollo@iot.bzh> | 2018-01-05 17:02:19 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2018-01-05 17:02:19 +0100 |
commit | 1a6a680c413b21eeb781a92d0fee7ee6e5fb619b (patch) | |
tree | 77231f17c08edd2fe65afd7e24195dda7f597e70 | |
parent | 62ae98a8b627d356b5d22da0b32aa116244ac2f6 (diff) |
afb-client-demo: Fix memory leak
Change-Id: I636b95459715f3b272509eb76e304a49593fb527
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r-- | src/afb-client-demo.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/afb-client-demo.c b/src/afb-client-demo.c index ae914a46..701fdcff 100644 --- a/src/afb-client-demo.c +++ b/src/afb-client-demo.c @@ -451,6 +451,7 @@ static void pws_call(const char *verb, const char *object) o = json_object_new_string(object); } rc = afb_proto_ws_client_call(pws, verb, o, sessionid, key); + json_object_put(o); if (rc < 0) { fprintf(stderr, "calling %s(%s) failed: %m\n", verb, object?:""); dec_callcount(); |