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:
parent
ee59b6a5e7
commit
d7bc82aa93
@ -1119,6 +1119,7 @@ conf_parse(const char *f)
|
||||
confset_free(&lc);
|
||||
confset_free(&rc);
|
||||
fclose(fp);
|
||||
free(line);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user