summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsanghyeok oh <sanghyeok.oh@samsung.com>2019-06-24 00:52:11 +0000
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>2019-06-24 00:52:11 +0000
commitbf37f6adf4a86b93a56680f39ae472dd5f59fa7f (patch)
tree7a15cd8e05da0635eef44dcd5130f45f212f6f10
parent04df0ad5f440d3b16174218ade8e7f58092dae46 (diff)
parentacedf6f40d6eaa405ac6cb390863b0c216e0543a (diff)
downloaddbus-bf37f6adf4a86b93a56680f39ae472dd5f59fa7f.tar.gz
dbus-bf37f6adf4a86b93a56680f39ae472dd5f59fa7f.tar.bz2
dbus-bf37f6adf4a86b93a56680f39ae472dd5f59fa7f.zip
Merge "Remove unused DbusError to avoid memory leak." into tizensubmit/tizen/20190624.005319accepted/tizen/unified/20190624.115337
-rwxr-xr-xdbus/dbus-transport-kdbus.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/dbus/dbus-transport-kdbus.c b/dbus/dbus-transport-kdbus.c
index 84e20300..d549f5a1 100755
--- a/dbus/dbus-transport-kdbus.c
+++ b/dbus/dbus-transport-kdbus.c
@@ -2214,11 +2214,9 @@ reply_listNames (DBusTransportKdbus *transport,
{
if (item->type == KDBUS_ITEM_OWNED_NAME)
{
- DBusError local_error;
char *name_ptr = item->name.name;
- dbus_error_init ( &local_error );
- if (!dbus_validate_bus_name (name_ptr, &local_error))
+ if (!dbus_validate_bus_name (name_ptr, NULL))
continue;
if (flags & KDBUS_LIST_QUEUED)