mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
Fix incorrect frees
PR: 220447 Reported by: Rozhuk Ivan <rozhuk.im@gmail.com> Submitted by: dim
This commit is contained in:
parent
fb0ac569bf
commit
700bbf3778
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=445018
20
print/texinfo/files/patch-tp-Texinfo-MiscXS-misc.c
Normal file
20
print/texinfo/files/patch-tp-Texinfo-MiscXS-misc.c
Normal file
@ -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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user