Bug 202145 - memory leak in 'config' program
Summary: memory leak in 'config' program
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Many People
Assignee: Rui Paulo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-07 03:03 UTC by Kurt Lidl
Modified: 2015-10-13 21:09 UTC (History)
1 user (show)

See Also:


Attachments
path that fixes the memory leak (510 bytes, patch)
2015-08-07 03:03 UTC, Kurt Lidl
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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