afb-hsrv: Add processing of type application/json
[src/app-framework-binder.git] / src / afb-hreq.c
index e5dcf64..fa16565 100644 (file)
@@ -318,6 +318,9 @@ static void req_destroy(struct afb_xreq *xreq)
 
        if (hreq->postform != NULL)
                MHD_destroy_post_processor(hreq->postform);
+       if (hreq->tokener != NULL)
+               json_tokener_free(hreq->tokener);
+
        for (data = hreq->data; data; data = hreq->data) {
                hreq->data = data->next;
                if (data->path) {