aboutsummaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2017-07-04 15:28:06 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2017-07-04 15:28:06 +0000
commit700bbf37789dd66f42bca96f87266357499cbc32 (patch)
treedfed1adcc5fd64c4d0e7a9505eda1c17fd0ad733 /print
parentfb0ac569bfeddde8c20e1c18ec8b5497ab1f85e6 (diff)
downloadports-700bbf37789dd66f42bca96f87266357499cbc32.tar.gz
ports-700bbf37789dd66f42bca96f87266357499cbc32.zip
Fix incorrect frees
PR: 220447 Reported by: Rozhuk Ivan <rozhuk.im@gmail.com> Submitted by: dim
Notes
Notes: svn path=/head/; revision=445018
Diffstat (limited to 'print')
-rw-r--r--print/texinfo/files/patch-tp-Texinfo-MiscXS-misc.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/print/texinfo/files/patch-tp-Texinfo-MiscXS-misc.c b/print/texinfo/files/patch-tp-Texinfo-MiscXS-misc.c
new file mode 100644
index 000000000000..a0328a52f7c6
--- /dev/null
+++ b/print/texinfo/files/patch-tp-Texinfo-MiscXS-misc.c
@@ -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;
+ }