summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/afb-client-demo.c1
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();