projects
/
platform
/
upstream
/
dbus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
83d1eb8
)
dbus-connection: Add _dbus_string_free to deallocate memory
23/197923/1
accepted/tizen/unified/20190128.061345
submit/tizen/20190117.090745
submit/tizen/20190121.055508
author
sanghyeok.oh
<sanghyeok.oh@samsung.com>
Thu, 17 Jan 2019 07:08:51 +0000
(16:08 +0900)
committer
sanghyeok.oh
<sanghyeok.oh@samsung.com>
Thu, 17 Jan 2019 07:08:53 +0000
(16:08 +0900)
The string must eventually be freed with _dbus_string_free().
Change-Id: I4041940684dd1dc7099bf823b22fabc357f17901
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
dbus/dbus-connection.c
patch
|
blob
|
history
diff --git
a/dbus/dbus-connection.c
b/dbus/dbus-connection.c
index
1683c32
..
420dfb8
100644
(file)
--- 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;