HomeFreeBSD

parse.c parse_string

Description

parse.c parse_string
When parse_semi fails, free s before returning

parse.c parse_numeric_aggregate
The memory assigned to bufp is complicated, it can either be from the input
parameter buf or allocated locally. Introduce a new variable lbufp to track
when it is assigned locally and to free it when appropriate.

Submitted by: Thomas Rix <trix@juniper.net>
Reviewed by: jhb
Approved by: sjg (mentor)
Obtained from: Juniper Networks, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D9899

Details

Provenance
stevekAuthored on
Reviewer
jhb
Differential Revision
D9899: Fix memory leaks in dhclient
Parents
rS319360: MFC r318586
Branches
Unknown
Tags
Unknown