projects
/
p5sagit/p5-mst-13.2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Fix memory leak
[p5sagit/p5-mst-13.2.git]
/
regexec.c
diff --git
a/regexec.c
b/regexec.c
index
bc8da6e
..
45ece8e
100644
(file)
--- a/
regexec.c
+++ b/
regexec.c
@@
-5807,6
+5807,9
@@
S_reginclass(pTHX_ const regexp *prog, register const regnode *n, register const
match = TRUE;
}
}
+
+ /* If we allocated a string above, free it */
+ if (! do_utf8) Safefree(utf8_p);
}
}
if (match && lenp && *lenp == 0)