diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2007-11-20 00:13:58 +0000 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2007-11-20 00:13:58 +0000 |
commit | d75597b0b31f8aa8ca523a3cfa4869e20fca8466 (patch) | |
tree | c19f21793a59a252a43dbdab7476dedf760fc5d3 | |
parent | 3e1e11afc869238d5cfca899d4814fea8a877687 (diff) |
Fixed memory management issues introduced by at least the getaddrinfo()
change. (Patch from arnau)
-rw-r--r-- | conf.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -47,10 +47,10 @@ conf_t *conf_load( int argc, char *argv[] ) conf = g_new0( conf_t, 1 ); conf->iface = NULL; - conf->port = "6667"; + conf->port = g_strdup( "6667" ); conf->nofork = 0; conf->verbose = 0; - conf->primary_storage = "xml"; + conf->primary_storage = g_strdup( "xml" ); conf->migrate_storage = g_strsplit( "text", ",", -1 ); conf->runmode = RUNMODE_INETD; conf->authmode = AUTHMODE_OPEN; |