X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-xreq.c;h=80dd143d93bc883be1e99c16e0cf2a3cee12dacf;hb=refs%2Fheads%2Fdab;hp=c70e0006151509f16638a7b5209739830e73671d;hpb=04186fd953298be8b8c5673b5fcd01f0893986ff;p=src%2Fapp-framework-binder.git diff --git a/src/afb-xreq.c b/src/afb-xreq.c index c70e0006..80dd143d 100644 --- a/src/afb-xreq.c +++ b/src/afb-xreq.c @@ -49,6 +49,8 @@ static inline void xreq_addref(struct afb_xreq *xreq) static inline void xreq_unref(struct afb_xreq *xreq) { if (!__atomic_sub_fetch(&xreq->refcount, 1, __ATOMIC_RELAXED)) { + if (!xreq->replied) + afb_xreq_fail(xreq, "error", "no reply"); if (xreq->hookflags) afb_hook_xreq_end(xreq); xreq->queryitf->unref(xreq);