From b4d211fe6fd3db31a3ddbf652f3ada24b3418244 Mon Sep 17 00:00:00 2001 From: Shin-ichi MORITA Date: Tue, 20 Jun 2017 06:53:14 +0900 Subject: [PATCH 2/3] Fix unref NULL error_msg might be NULL and it is wrong to call dbus_message_unref() with NULL. --- dbus/dbus-connection.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dbus/dbus-connection.c b/dbus/dbus-connection.c index c55be6fe..1079e35e 100644 --- a/dbus/dbus-connection.c +++ b/dbus/dbus-connection.c @@ -2476,7 +2476,8 @@ _dbus_connection_block_pending_call (DBusPendingCall *pending) /* on OOM error_msg is set to NULL */ complete_pending_call_and_unlock (connection, pending, error_msg); - dbus_message_unref (error_msg); + if (error_msg != NULL) + dbus_message_unref (error_msg); dbus_pending_call_unref (pending); return; } -- 2.13.1