X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-hreq.c;h=3ddc4d1e8a00cc7a576796515024619bd6e0d09d;hb=041ce4919b4513f7e019b018558e947164101b35;hp=00c27eb1a72918e32360f58016f70546c231f391;hpb=56f9ef4581d567248b6f83a3b15f39a0aca42895;p=src%2Fapp-framework-binder.git diff --git a/src/afb-hreq.c b/src/afb-hreq.c index 00c27eb1..3ddc4d1e 100644 --- a/src/afb-hreq.c +++ b/src/afb-hreq.c @@ -223,11 +223,16 @@ void afb_hreq_free(struct afb_hreq *hreq) MHD_destroy_post_processor(hreq->postform); for (data = hreq->data; data; data = hreq->data) { hreq->data = data->next; + if (data->path) { + unlink(data->path); + free(data->path); + } free(data->key); free(data->value); free(data); } ctxClientPut(hreq->context); + json_object_put(hreq->json); free(hreq); } }