summaryrefslogtreecommitdiff
path: root/src/service.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/service.c')
-rwxr-xr-xsrc/service.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/service.c b/src/service.c
index 259a497..4f7b9b8 100755
--- a/src/service.c
+++ b/src/service.c
@@ -612,6 +612,8 @@ static int service_load_passphrase(struct connman_service *service)
if (str)
service->passphrase = str;
+ g_key_file_free(keyfile);
+
return 0;
}
@@ -1739,9 +1741,6 @@ int __connman_service_nameserver_append(struct connman_service *service,
return -ENOMEM;
nameservers[len] = g_strdup(nameserver);
- if (!nameservers[len])
- return -ENOMEM;
-
nameservers[len + 1] = NULL;
#ifdef TIZEN_EXT