diff options
author | Vinicius Gomes <vinicius.gomes@openbossa.org> | 2008-04-11 23:04:17 +0000 |
---|---|---|
committer | Vinicius Gomes <vinicius.gomes@openbossa.org> | 2008-04-11 23:04:17 +0000 |
commit | 31f2ffeffd5ff735329821113c4d4d4d54f4f8dd (patch) | |
tree | 0fd399e71949149a50055e0589d0b1b607aca0ff /network/main.c | |
parent | 31cd43a596c4bbf153d15e0c78bc2f9e5f2c7050 (diff) |
network: fixes a memory leak when reading the Disable config option.
Diffstat (limited to 'network/main.c')
-rw-r--r-- | network/main.c | 3 |
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); |