diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/storage.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/storage.c b/src/storage.c index 8b0db77b..0854ed4b 100644 --- a/src/storage.c +++ b/src/storage.c @@ -248,12 +248,9 @@ GKeyFile *connman_storage_load_service(const char *service_id) return NULL; keyfile = storage_load(pathname); - if (keyfile) { - g_free(pathname); - return keyfile; - } - g_free(pathname); + if (keyfile) + return keyfile; pathname = g_strdup_printf("%s/%s", STORAGEDIR, DEFAULT); if(pathname == NULL) |