aboutsummaryrefslogtreecommitdiffstats
path: root/binding/afm-nfc-binding.c
diff options
context:
space:
mode:
Diffstat (limited to 'binding/afm-nfc-binding.c')
-rw-r--r--binding/afm-nfc-binding.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/binding/afm-nfc-binding.c b/binding/afm-nfc-binding.c
index 5b046f2..72f219f 100644
--- a/binding/afm-nfc-binding.c
+++ b/binding/afm-nfc-binding.c
@@ -217,6 +217,7 @@ static void record_found(const char *tag_name, void *ptr)
pthread_mutex_lock(&mutex);
data->jresp = jresp;
json_object_object_add(jresp, "uid", json_object_new_string(uid));
+ json_object_get(jresp); /* afb_event_push invokes json_object_put */
pthread_mutex_unlock(&mutex);
afb_event_push(presence_event, jresp);