sd-bus: always go through sd_bus_unref() to free messages
authorLennart Poettering <lennart@poettering.net>
Thu, 17 Jan 2019 20:07:42 +0000 (21:07 +0100)
committerLukas Nykryn <lnykryn@redhat.com>
Thu, 6 Feb 2020 09:41:56 +0000 (10:41 +0100)
commit6180d5ee908c9c742f816c6922c229aefd533117
tree3d3bda9b6a000ec548b4f4557facb8e19291c94d
parent247d4f826ab189c4dfc4706aaa94782342655218
sd-bus: always go through sd_bus_unref() to free messages

Don't try to be smart, don't bypass the ref counting logic if there's no
real reason to.

This matters if we want to tweak the ref counting logic later.

(cherry picked from commit b41812d1e308de03c879cfca490105216d528c4b)
Related: CVE-2020-1712
src/libsystemd/sd-bus/bus-message.c