This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f84c484
)
undo #27700 and add a missing Safefree()
author
Dave Mitchell
<davem@fdisolutions.com>
Mon, 3 Apr 2006 09:56:29 +0000
(09:56 +0000)
committer
Dave Mitchell
<davem@fdisolutions.com>
Mon, 3 Apr 2006 09:56:29 +0000
(09:56 +0000)
p4raw-id: //depot/perl@27702
regexec.c
patch
|
blob
|
blame
|
history
diff --git
a/regexec.c
b/regexec.c
index
1d334b3
..
bbec763
100644
(file)
--- a/
regexec.c
+++ b/
regexec.c
@@
-4556,10
+4556,12
@@
exit_level:
/* free all slabs above current one */
if (orig_slab->next) {
- regmatch_slab *sl = orig_slab->next;
+ regmatch_slab *
osl, *
sl = orig_slab->next;
orig_slab->next = NULL;
while (sl) {
+ osl = sl;
sl = sl->next;
+ Safefree(osl);
}
}