Bug 202145

Summary: memory leak in 'config' program
Product: Base System Reporter: Kurt Lidl <lidl>
Component: binAssignee: Rui Paulo <rpaulo>
Status: Closed FIXED    
Severity: Affects Many People CC: rpaulo
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
path that fixes the memory leak none

Description Kurt Lidl freebsd_committer freebsd_triage 2015-08-07 03:03:03 UTC
Created attachment 159628 [details]
path that fixes the memory leak

The 'config' program leaks memory when running.

It's not critical, in that config isn't a long running program,
but it easy to fix.

The clang static analysis tool found the problem originally.

Patch is attached.  I've been running with this patch for a
couple of months on my -current tracking machine, and not
had any problems.
Comment 1 commit-hook freebsd_committer freebsd_triage 2015-10-13 20:25:33 UTC
A commit references this bug:

Author: rpaulo
Date: Tue Oct 13 20:25:03 UTC 2015
New revision: 289262
URL: https://svnweb.freebsd.org/changeset/base/289262

Log:
  Fix two memory leaks in config(8).

  PR:		202145
  Submitted by:	Kurt Lidl <lidl pix.net>

Changes:
  head/usr.sbin/config/mkmakefile.c