X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=maxpath.c;h=0932df31669b98034affda15fa0eb9ba5fc55f44;hb=83ae316a7b14e55418349e87d1a1942a0627ae14;hp=fbd5a177deed76eb30139ebd8a5d85cd8abd7adf;hpb=8e0907be1d73011075a99a0c029c56664e12843e;p=onak.git diff --git a/maxpath.c b/maxpath.c index fbd5a17..0932df3 100644 --- a/maxpath.c +++ b/maxpath.c @@ -91,12 +91,16 @@ int main(int argc, char *argv[]) while ((optchar = getopt(argc, argv, "c:")) != -1 ) { switch (optchar) { case 'c': + if (configfile != NULL) { + free(configfile); + } configfile = strdup(optarg); break; } } readconfig(configfile); + free(configfile); initlogthing("maxpath", config.logfile); dbctx = config.dbinit(true); if (dbctx != NULL) {