HomeFreeBSD

When the input parameter node is NULL, memory is allocated to it.

Description

When the input parameter node is NULL, memory is allocated to it.
To later free the memory, introduce a new variable lnode to track when
this happens.

Submitted by: Thomas Rix <trix@juniper.net>
Reviewed by: emax
Approved by: sjg (mentor)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D9878

Details

Provenance
stevekAuthored on
Reviewer
emax
Differential Revision
D9878: Fix a memory leak in bluetooth/hccontrol
Parents
rS319638: Before returning because of an memory allocation error, free the memory
Branches
Unknown
Tags
Unknown