blacklist: Fix minor memory leak in configuration parsing error case

Ordinarily, the continue clause of the for-loop would free 'line.'  In this
case we instead return early, missing the free.  Add an explicit free to
avoid the leak.

Reported by:	Coverity
Sponsored by:	Dell EMC Isilon
This commit is contained in:
cem 2018-03-20 00:16:24 +00:00
parent ee59b6a5e7
commit d7bc82aa93

View File

@ -1119,6 +1119,7 @@ conf_parse(const char *f)
confset_free(&lc);
confset_free(&rc);
fclose(fp);
free(line);
return;
}
}