diff options
author | sanghyeok.oh <sanghyeok.oh@samsung.com> | 2019-01-17 16:08:51 +0900 |
---|---|---|
committer | sanghyeok.oh <sanghyeok.oh@samsung.com> | 2019-01-17 16:08:53 +0900 |
commit | ea876bcc3e353dab19fc63f389b77cb89eef359d (patch) | |
tree | ea763b55b1dba62c4635f5ad9efb20031931ff71 | |
parent | 83d1eb8d3b4cc43f662953138feba4456a23505f (diff) | |
download | dbus-ea876bcc3e353dab19fc63f389b77cb89eef359d.tar.gz dbus-ea876bcc3e353dab19fc63f389b77cb89eef359d.tar.bz2 dbus-ea876bcc3e353dab19fc63f389b77cb89eef359d.zip |
dbus-connection: Add _dbus_string_free to deallocate memorysubmit/tizen/20190121.055508submit/tizen/20190117.090745accepted/tizen/unified/20190128.061345
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.c | 2 |
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; |