summaryrefslogtreecommitdiffstats
path: root/network
diff options
context:
space:
mode:
authorVinicius Gomes <vinicius.gomes@openbossa.org>2008-04-11 23:04:17 +0000
committerVinicius Gomes <vinicius.gomes@openbossa.org>2008-04-11 23:04:17 +0000
commit31f2ffeffd5ff735329821113c4d4d4d54f4f8dd (patch)
tree0fd399e71949149a50055e0589d0b1b607aca0ff /network
parent31cd43a596c4bbf153d15e0c78bc2f9e5f2c7050 (diff)
network: fixes a memory leak when reading the Disable config option.
Diffstat (limited to 'network')
-rw-r--r--network/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/network/main.c b/network/main.c
index e749762e..66266b90 100644
--- a/network/main.c
+++ b/network/main.c
@@ -57,7 +57,7 @@ static void read_config(const char *file)
{
GKeyFile *keyfile;
GError *err = NULL;
- const char *disabled;
+ char *disabled;
keyfile = g_key_file_new();
@@ -79,6 +79,7 @@ static void read_config(const char *file)
if (strstr(disabled, "Server"))
conf.server_enabled = FALSE;
}
+ g_free(disabled);
conf.security = !g_key_file_get_boolean(keyfile, "General",
"DisableSecurity", &err);