From owner-svn-ports-all@freebsd.org Tue Jul 4 15:28:08 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 170BED94012; Tue, 4 Jul 2017 15:28:08 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D9A9D7E0F6; Tue, 4 Jul 2017 15:28:07 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v64FS7SU069573; Tue, 4 Jul 2017 15:28:07 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v64FS7bv069572; Tue, 4 Jul 2017 15:28:07 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201707041528.v64FS7bv069572@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Tue, 4 Jul 2017 15:28:07 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r445018 - head/print/texinfo/files X-SVN-Group: ports-head X-SVN-Commit-Author: sunpoet X-SVN-Commit-Paths: head/print/texinfo/files X-SVN-Commit-Revision: 445018 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jul 2017 15:28:08 -0000 Author: sunpoet Date: Tue Jul 4 15:28:06 2017 New Revision: 445018 URL: https://svnweb.freebsd.org/changeset/ports/445018 Log: Fix incorrect frees PR: 220447 Reported by: Rozhuk Ivan Submitted by: dim Added: head/print/texinfo/files/ head/print/texinfo/files/patch-tp-Texinfo-MiscXS-misc.c (contents, props changed) Added: head/print/texinfo/files/patch-tp-Texinfo-MiscXS-misc.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/print/texinfo/files/patch-tp-Texinfo-MiscXS-misc.c Tue Jul 4 15:28:06 2017 (r445018) @@ -0,0 +1,20 @@ +--- tp/Texinfo/MiscXS/misc.c.orig 2017-05-02 17:05:43 UTC ++++ tp/Texinfo/MiscXS/misc.c +@@ -67,7 +67,7 @@ xs_abort_empty_line (HV *self, HV *curre + additional_text = SvPV (additional_text_in, len); + if (!SvUTF8 (additional_text_in)) + { +- free (new_string); ++ Safefree (new_string); + new_string = bytes_to_utf8 (additional_text, &len); + additional_text = new_string; + } +@@ -279,7 +279,7 @@ xs_merge_text (HV *self, HV *current, SV + text = SvPV (text_in, len); + if (!SvUTF8 (text_in)) + { +- free (new_string); ++ Safefree (new_string); + new_string = bytes_to_utf8 (text, &len); + text = new_string; + }