fix cosmetic coverity leak report (CID 207601)

While in theory this is a leak, in practice it's extremely unlikely
and irrelevant. Nevertheless, let's fix it ;-)
This commit is contained in:
Rainer Gerhards 2019-04-30 08:52:46 +02:00
parent d63ed4df54
commit 32c5ade046
No known key found for this signature in database
GPG Key ID: 0CB6B2A8BE80B499

View File

@ -1428,6 +1428,12 @@ initAll(int argc, char **argv)
iConfigVerify = (arg == NULL) ? 0 : atoi(arg);
break;
case 'o':
if(fp_rs_full_conf_output != NULL) {
fprintf(stderr, "warning: -o option given multiple times. Now "
"using value %s\n", (arg == NULL) ? "-" : arg);
fclose(fp_rs_full_conf_output);
fp_rs_full_conf_output = NULL;
}
if(arg == NULL || !strcmp(arg, "-")) {
fp_rs_full_conf_output = stdout;
} else {