X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-hreq.c;h=9c6309123fd891d33f38b64e0b7bff69ae49d685;hb=a63851bb4726c89d9a3c5755d78d1c4bbc3f3b2e;hp=fe5af73acb4bbe791f878f96198496cafef561de;hpb=a8e971702f23ee67e02b4716ad4159f12cefdca6;p=src%2Fapp-framework-binder.git diff --git a/src/afb-hreq.c b/src/afb-hreq.c index fe5af73a..9c630912 100644 --- a/src/afb-hreq.c +++ b/src/afb-hreq.c @@ -33,12 +33,12 @@ #endif #include "afb-method.h" -#include +#include #include "afb-msg-json.h" #include "afb-context.h" #include "afb-hreq.h" -#include "afb-subcall.h" #include "afb-session.h" +#include "afb-cred.h" #include "verbose.h" #include "locale-root.h" @@ -319,6 +319,7 @@ static void req_destroy(struct afb_xreq *xreq) json_object_put(hreq->json); free((char*)hreq->xreq.api); free((char*)hreq->xreq.verb); + afb_cred_unref(hreq->xreq.cred); free(hreq); }