Fix missing dbus_message_unref() in error reply path 15/197915/1
authorShin-ichi MORITA <shin1morita@gmail.com>
Sat, 17 Jun 2017 11:35:30 +0000 (20:35 +0900)
committersanghyeok.oh <sanghyeok.oh@samsung.com>
Thu, 17 Jan 2019 06:28:39 +0000 (15:28 +0900)
commit83d1eb8d3b4cc43f662953138feba4456a23505f
tree74c0c69dc834972195c29fcec3816eeaea669075
parentee4d9ece47e33ba632c0c0bb490e7c345de9e876
Fix missing dbus_message_unref() in error reply path

The error message was leaked when blocking on a pending call after
the connection was disconnected.

Change-Id: Icc95bcef32b2fd1d2b4d4a7db3bdf2936579c52c
Reviewed-by: Philip Withnall <withnall@endlessm.com>
[smcv: re-word commit message]
Reviewed-by: Simon McVittie <smcv@collabora.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=101481
dbus/dbus-connection.c
test/name-test/Makefile.am
test/name-test/test-pending-call-disconnected.c [new file with mode: 0644]