summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorLarry Wall <larry@netlabs.com>1994-03-18 00:00:00 +0000
committerLarry Wall <larry@netlabs.com>1994-03-18 00:00:00 +0000
commit8990e3071044a96302560bbdb5706f3e74cf1bef (patch)
tree6cf4a58108544204591f25bd2d4f1801d49334b4 /regexec.c
parented6116ce9b9d13712ea252ee248b0400653db7f9 (diff)
downloadperl-8990e3071044a96302560bbdb5706f3e74cf1bef.tar.gz
perl 5.0 alpha 6
[editor's note: cleaned up from the September '94 InfoMagic CD, just like the last commit]
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regexec.c b/regexec.c
index 9bfcfba12f..131ad0fe29 100644
--- a/regexec.c
+++ b/regexec.c
@@ -165,7 +165,7 @@ I32 safebase; /* no need to remember string in subbase */
minlen = prog->regback + SvCUR(prog->regmust);
}
else if (--BmUSEFUL(prog->regmust) < 0) { /* boo */
- sv_free(prog->regmust);
+ SvREFCNT_dec(prog->regmust);
prog->regmust = Nullsv; /* disable regmust */
s = string;
}