svn commit: r445018 - head/print/texinfo/files

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Tue Jul 4 15:28:08 UTC 2017


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 at 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;
+       }


More information about the svn-ports-all mailing list