projects
/
platform
/
upstream
/
gsignond.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5630356
)
daemon: fixed memory leak in gsignond-config.c
author
Imran Zaman
<imran.zaman@linux.intel.com>
Mon, 29 Apr 2013 09:06:13 +0000
(12:06 +0300)
committer
Imran Zaman
<imran.zaman@linux.intel.com>
Mon, 29 Apr 2013 09:06:13 +0000
(12:06 +0300)
src/common/gsignond-config.c
patch
|
blob
|
history
diff --git
a/src/common/gsignond-config.c
b/src/common/gsignond-config.c
index
2cb754f
..
d77d9ed
100644
(file)
--- a/
src/common/gsignond-config.c
+++ b/
src/common/gsignond-config.c
@@
-178,9
+178,9
@@
gsignond_config_load (GSignondConfig *self)
if (g_access (def_config, R_OK) == 0) {
self->priv->config_file_path = def_config;
} else {
+ g_free (def_config);
sysconfdirs = g_get_system_config_dirs ();
while (*sysconfdirs != NULL) {
- g_free (def_config);
def_config = g_build_filename (*sysconfdirs,
"gsignond/gsignond.conf",
NULL);
@@
-188,6
+188,7
@@
gsignond_config_load (GSignondConfig *self)
self->priv->config_file_path = def_config;
break;
}
+ g_free (def_config);
sysconfdirs++;
}
}