HomeFreeBSD

Fixes to chkprintcap:

Description

Fixes to chkprintcap:

  • Check the return from a call to malloc() in skim_printcap(), and return a NULL if that fails.
  • Fix a small memory leak in main() that happens if skim_printcap() returns an error, including the new error-return of NULL.

Submitted by: Tom Rix <trix@juniper.net>
Reviewed by: pfg, ngie
MFC after: 4 weeks
Sponsored by: Dell EMC Isilon, Juniper
Differential Revision: D9954, D9982

Details

Provenance
gadAuthored on
Reviewer
pfg
Differential Revision
D9982: Fix a memory leak in lpr, alternate checks...
Parents
rS315654: Fix linking /rescue/rescue to multiple programs in usr.bin after r315113
Branches
Unknown
Tags
Unknown