Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Dec 2009 19:18:27 +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: r200794 - head/bin/pax
Message-ID:  <200912211918.nBLJIRYY037833@svn.freebsd.org>

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

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

Modified:
  head/bin/pax/sel_subs.c

Modified: head/bin/pax/sel_subs.c
==============================================================================
--- head/bin/pax/sel_subs.c	Mon Dec 21 19:15:30 2009	(r200793)
+++ head/bin/pax/sel_subs.c	Mon Dec 21 19:18:27 2009	(r200794)
@@ -396,6 +396,7 @@ trng_add(char *str)
 			default:
 				paxwarn(1, "Bad option %c with time range %s",
 				    *flgpt, str);
+				free(pt);
 				goto out;
 			}
 			++flgpt;



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