HomeFreeBSD

sbin/dhclient: fix a memory leak in parse_client_lease_statement(..)

Description

sbin/dhclient: fix a memory leak in parse_client_lease_statement(..)

The memory stored by lease would have previously been leaked if an
unterminated lease declaration was found in an early-return code path.

MFC after: 1 week
Reported by: clang static analyzer, Coverity
CID: 1007114
Submitted by: Tom Rix <trix@juniper.net>
Sponsored by: Dell EMC Isilon; Juniper, Inc
Differential Revision: D9992

Details

Provenance
ngieAuthored on
Differential Revision
D9992: Fix a memory leak in dhclient
Parents
rS315198: [net80211] begin fleshing out per-VAP WME configurations.
Branches
Unknown
Tags
Unknown