svn commit: r205118 - head/sbin/sysctl
Bruce Cran
brucec at FreeBSD.org
Sat Mar 13 11:08:58 UTC 2010
Author: brucec
Date: Sat Mar 13 11:08:57 2010
New Revision: 205118
URL: http://svn.freebsd.org/changeset/base/205118
Log:
Free the memory allocated via strdup.
PR: bin/113881
Submitted by: Alexander Drozdov dzal_mail mtu-net.ru
Approved by: rrs (mentor)
MFC after: 1 week
Modified:
head/sbin/sysctl/sysctl.c
Modified: head/sbin/sysctl/sysctl.c
==============================================================================
--- head/sbin/sysctl/sysctl.c Sat Mar 13 11:06:47 2010 (r205117)
+++ head/sbin/sysctl/sysctl.c Sat Mar 13 11:08:57 2010 (r205118)
@@ -382,6 +382,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-all
mailing list