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);
}
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"