HomeFreeBSD

blacklist: Fix minor memory leak in configuration parsing error case

Description

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

Details

Provenance
cemAuthored on Mar 20 2018, 12:16 AM
Parents
rG108117cc2233: [ofw] fix errneous checks for OF_finddevice(9) return value
Branches
Unknown
Tags
Unknown

Event Timeline