projects
/
platform
/
upstream
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
895c96e
)
storage: Trivial change to free pathname in common part of the code
author
Patrik Flykt
<patrik.flykt@linux.intel.com>
Mon, 31 Oct 2011 13:31:35 +0000
(15:31 +0200)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Mon, 7 Nov 2011 16:40:07 +0000
(17:40 +0100)
src/storage.c
patch
|
blob
|
history
diff --git
a/src/storage.c
b/src/storage.c
index 8b0db77b8d4cae310a080c21ce1c560317c46c92..0854ed4b448c0d5e19562b3b952835f670be61ca 100644
(file)
--- 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)