Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Apr 2010 20:26:26 +0000 (UTC)
From:      Bruce Cran <brucec@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r206914 - stable/7/sbin/sysctl
Message-ID:  <201004202026.o3KKQQpZ035058@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brucec
Date: Tue Apr 20 20:26:26 2010
New Revision: 206914
URL: http://svn.freebsd.org/changeset/base/206914

Log:
  MFC r205118:
  
  Free the memory allocated via strdup.
  
  PR:	bin/113881
  Submitted by:	Alexander Drozdov <dzal_mail at mtu-net.ru>
  Approved by:	rrs (mentor)

Modified:
  stable/7/sbin/sysctl/sysctl.c
Directory Properties:
  stable/7/sbin/sysctl/   (props changed)

Modified: stable/7/sbin/sysctl/sysctl.c
==============================================================================
--- stable/7/sbin/sysctl/sysctl.c	Tue Apr 20 20:24:00 2010	(r206913)
+++ stable/7/sbin/sysctl/sysctl.c	Tue Apr 20 20:26:26 2010	(r206914)
@@ -371,6 +371,7 @@ S_timeval(int l2, void *p)
 		if (*p2 == '\n')
 			*p2 = '\0';
 	fputs(p1, stdout);
+	free(p1);
 	return (0);
 }
 



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