HomeFreeBSD

sdiff(1): Fix potential NULL deref in cleanup path

Description

sdiff(1): Fix potential NULL deref in cleanup path

In the presence of the --diff-pid argument, it is possible for 'diffpipe' to be
NULL. Only fclose() it if it was initialized.

Reported by: Coverity
CID: 1355183
Sponsored by: EMC / Isilon Storage Division

Details

Provenance
cemAuthored on
Parents
rS299384: Pass device tree node as a part of gpio_pin_get_by_ofw_XXX API
Branches
Unknown
Tags
Unknown