Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Dec 2009 19:15:30 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r200793 - head/usr.bin/finger
Message-ID:  <200912211915.nBLJFU2w037743@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Mon Dec 21 19:15:30 2009
New Revision: 200793
URL: http://svn.freebsd.org/changeset/base/200793

Log:
  Plug a memory leak.
  
  PR:		bin/141836
  Submitted by:	Henning Petersen <henning.petersen at t-online.de>
  MFC after:	2 weeks

Modified:
  head/usr.bin/finger/finger.c

Modified: head/usr.bin/finger/finger.c
==============================================================================
--- head/usr.bin/finger/finger.c	Mon Dec 21 18:56:55 2009	(r200792)
+++ head/usr.bin/finger/finger.c	Mon Dec 21 19:15:30 2009	(r200793)
@@ -373,6 +373,7 @@ net:	for (p = nargv; *p;) {
 		    printf("\n");
 	}
 
+	free(used);
 	if (entries == 0)
 		return;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912211915.nBLJFU2w037743>