From owner-svn-src-all@FreeBSD.ORG Tue Apr 20 20:26:26 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F181106566C; Tue, 20 Apr 2010 20:26:26 +0000 (UTC) (envelope-from brucec@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 4DE1F8FC18; Tue, 20 Apr 2010 20:26:26 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o3KKQQn7035060; Tue, 20 Apr 2010 20:26:26 GMT (envelope-from brucec@svn.freebsd.org) Received: (from brucec@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o3KKQQpZ035058; Tue, 20 Apr 2010 20:26:26 GMT (envelope-from brucec@svn.freebsd.org) Message-Id: <201004202026.o3KKQQpZ035058@svn.freebsd.org> From: Bruce Cran Date: Tue, 20 Apr 2010 20:26:26 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org X-SVN-Group: stable-7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r206914 - stable/7/sbin/sysctl X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Apr 2010 20:26:26 -0000 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 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); }