svn commit: r206913 - stable/8/sbin/sysctl
Bruce Cran
brucec at FreeBSD.org
Tue Apr 20 20:24:01 UTC 2010
Author: brucec
Date: Tue Apr 20 20:24:00 2010
New Revision: 206913
URL: http://svn.freebsd.org/changeset/base/206913
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/8/sbin/sysctl/sysctl.c
Directory Properties:
stable/8/sbin/sysctl/ (props changed)
Modified: stable/8/sbin/sysctl/sysctl.c
==============================================================================
--- stable/8/sbin/sysctl/sysctl.c Tue Apr 20 20:21:01 2010 (r206912)
+++ stable/8/sbin/sysctl/sysctl.c Tue Apr 20 20:24:00 2010 (r206913)
@@ -379,6 +379,7 @@ S_timeval(int l2, void *p)
if (*p2 == '\n')
*p2 = '\0';
fputs(p1, stdout);
+ free(p1);
return (0);
}
More information about the svn-src-stable-8
mailing list