summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2011-05-20 10:54:22 -0600
committerKarl Williamson <public@khwilliamson.com>2011-05-20 11:12:05 -0600
commit2ff402b77dbfaa8fc14230271f1a86423a26c0f8 (patch)
treea0ba0a965035c4d546d5605e37cdd405157c2774 /regcomp.c
parent09dcfa7d12b25dc89ac02dc0f060ecc80d0335b2 (diff)
downloadperl-2ff402b77dbfaa8fc14230271f1a86423a26c0f8.tar.gz
regcomp.c: Another memory leak regression
The reference count should be decremented upon freeing.
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/regcomp.c b/regcomp.c
index a1183d5707..d2a60faacd 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -5980,6 +5980,7 @@ S_invlist_destroy(pTHX_ HV* const invlist)
UV *list = INT2PTR(UV *, SvUV(*list_ptr)); /* PERL_POISON needs lvalue */
Safefree(list);
}
+ SvREFCNT_dec(invlist);
}
STATIC void