Index: ossp-pkg/lmtp2nntp/lmtp2nntp_main.c RCS File: /v/ossp/cvs/ossp-pkg/lmtp2nntp/lmtp2nntp_main.c,v rcsdiff -q -kk '-r1.30' '-r1.31' -u '/v/ossp/cvs/ossp-pkg/lmtp2nntp/lmtp2nntp_main.c,v' 2>/dev/null --- lmtp2nntp_main.c 2002/01/31 16:01:01 1.30 +++ lmtp2nntp_main.c 2002/01/31 16:04:51 1.31 @@ -318,6 +318,7 @@ int i; /* general purpose scratch int, index ... */ pid_t pid; FILE *fd; + lmtp2nntp_option_t *o; /* drop effective uid/gid priviledges */ seteuid(getuid()); @@ -386,14 +387,9 @@ ctx->progname = strdup(argv[0]); /* read in the arguments */ -{ -lmtp2nntp_option_t *o; -(void)option_create(&o, ctx->val); /* FIXME */ -(void)option_parse(o, argc, argv); -(void)config_context(ctx); -(void)option_destroy(o); -return 0; -} + (void)option_create(&o, ctx->val); /* FIXME */ + (void)option_parse(o, argc, argv); + (void)config_context(ctx); /* if no positive ACL exists (option -a) add a wildcard match-all for IPv4 and IPv6 */ bOk = FALSE; @@ -692,7 +688,8 @@ if (ctx != NULL) free(ctx); str_parse(NULL, NULL); - /*FIXME option_destroy(o); */ + if (o != NULL) + (void)option_destroy(o); return rc; }