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

View File

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