Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jul 2017 15:28:07 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r445018 - head/print/texinfo/files
Message-ID:  <201707041528.v64FS7bv069572@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <rozhuk.im@gmail.com>
  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;
+       }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201707041528.v64FS7bv069572>