summaryrefslogtreecommitdiffstats
path: root/bindings
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-04-11 14:15:38 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-04-11 14:15:38 +0200
commit772f4f02724ee81db96c9455be8afdb304603642 (patch)
tree421a25d66d59e7a204b71c6daf079b4b3f171388 /bindings
parentcabdbd5f266d4298558cac42034e6392b449d16d (diff)
Fix a memory leak
Change-Id: Id47b417f6e5f8bf2322b1de7ed12579de711160f Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'bindings')
-rw-r--r--bindings/samples/HelloWorld.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bindings/samples/HelloWorld.c b/bindings/samples/HelloWorld.c
index c16bb92a..c6fa779c 100644
--- a/bindings/samples/HelloWorld.c
+++ b/bindings/samples/HelloWorld.c
@@ -280,6 +280,7 @@ static void eventpush (struct afb_req request)
else
afb_req_success(request, NULL, NULL);
pthread_mutex_unlock(&mutex);
+ json_object_put(object);
}
static void exitnow (struct afb_req request)