From d75597b0b31f8aa8ca523a3cfa4869e20fca8466 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Tue, 20 Nov 2007 00:13:58 +0000 Subject: Fixed memory management issues introduced by at least the getaddrinfo() change. (Patch from arnau) --- conf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'conf.c') diff --git a/conf.c b/conf.c index 551e8f5e..82487ddf 100644 --- a/conf.c +++ b/conf.c @@ -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; -- cgit v1.2.3