*
* Connection Manager
*
- * Copyright (C) 2007-2010 Intel Corporation. All rights reserved.
+ * Copyright (C) 2007-2012 Intel Corporation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
switch(connman_service_get_proxy_method(default_service)) {
case CONNMAN_SERVICE_PROXY_METHOD_UNKNOWN:
+ connman_dbus_dict_close(&iter, &dict);
goto done;
case CONNMAN_SERVICE_PROXY_METHOD_DIRECT:
method= "direct";
method = "manual";
str_list = connman_service_get_proxy_servers(default_service);
- if (str_list == NULL)
+ if (str_list == NULL) {
+ connman_dbus_dict_close(&iter, &dict);
goto done;
+ }
connman_dbus_dict_append_array(&dict, "Servers",
DBUS_TYPE_STRING, append_string_list,
if (str == NULL) {
str = connman_service_get_proxy_autoconfig(
default_service);
- if (str == NULL)
+ if (str == NULL) {
+ connman_dbus_dict_close(&iter, &dict);
goto done;
+ }
}
connman_dbus_dict_append_basic(&dict, "URL",