summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsanghyeok.oh <sanghyeok.oh@samsung.com>2019-01-17 16:08:51 +0900
committersanghyeok.oh <sanghyeok.oh@samsung.com>2019-01-17 16:08:53 +0900
commitea876bcc3e353dab19fc63f389b77cb89eef359d (patch)
treeea763b55b1dba62c4635f5ad9efb20031931ff71
parent83d1eb8d3b4cc43f662953138feba4456a23505f (diff)
downloaddbus-ea876bcc3e353dab19fc63f389b77cb89eef359d.tar.gz
dbus-ea876bcc3e353dab19fc63f389b77cb89eef359d.tar.bz2
dbus-ea876bcc3e353dab19fc63f389b77cb89eef359d.zip
The string must eventually be freed with _dbus_string_free(). Change-Id: I4041940684dd1dc7099bf823b22fabc357f17901 Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
-rw-r--r--dbus/dbus-connection.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dbus/dbus-connection.c b/dbus/dbus-connection.c
index 1683c320..420dfb84 100644
--- a/dbus/dbus-connection.c
+++ b/dbus/dbus-connection.c
@@ -4569,12 +4569,14 @@ _dbus_connection_peer_filter_unlocked_no_update (DBusConnection *connection,
else if (dbus_error_has_name (&error, DBUS_ERROR_NO_MEMORY))
{
dbus_error_free (&error);
+ _dbus_string_free (&uuid);
goto out;
}
else
{
ret = dbus_message_new_error (message, error.name, error.message);
dbus_error_free (&error);
+ _dbus_string_free (&uuid);
if (ret == NULL)
goto out;