Date: Sat, 13 Mar 2010 11:08:57 +0000 (UTC) From: Bruce Cran <brucec@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r205118 - head/sbin/sysctl Message-ID: <201003131108.o2DB8vmu001454@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003131108.o2DB8vmu001454>