dbus_message_append_args_valist: Don't leak memory on inappropriate type
authorSimon McVittie <smcv@collabora.com>
Tue, 4 Jul 2017 12:31:38 +0000 (13:31 +0100)
committerSimon McVittie <smcv@collabora.com>
Wed, 5 Jul 2017 12:56:24 +0000 (13:56 +0100)
commit4157b6a19159f3a10fba4efba532d7c4b4f044ca
treee71dc854bafb07744c0a36cf20a1048df71761c8
parentb1abd7ad07bff444c3d26c4f569ef23bca5b5271
dbus_message_append_args_valist: Don't leak memory on inappropriate type

Found by source code inspection while trying to debug an unrelated
leak.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=101568
(cherry picked from commit 6b7bdb105b120b3db312de93af94af1bb6a2a474)
dbus/dbus-message.c