Fix missing dbus_message_unref() in error reply path
authorShin-ichi MORITA <shin1morita@gmail.com>
Sat, 17 Jun 2017 11:35:30 +0000 (20:35 +0900)
committerSimon McVittie <smcv@collabora.com>
Tue, 27 Jun 2017 17:11:24 +0000 (18:11 +0100)
commit08bf0b1bbb8b6443a006b345af878550bfa7cee8
tree5f6fef4bb437f7a7451a22961181164a4895ec5f
parent8633640ce12f0319638d9d09b9ac66c9584be69e
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.

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]