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:
Conrad Meyer 2018-03-20 00:16:24 +00:00
parent 108117cc22
commit bf799c28ff
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=331230

View File

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