summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2011-05-26 22:29:40 -0600
committerKarl Williamson <public@khwilliamson.com>2011-05-26 22:52:26 -0600
commit626725768b7b17463e9ec7b92e2da37105036252 (patch)
tree2feed35f441d135c24455f90a1c9d69f17bb0c6e /proto.h
parentc1dcaaab2adb87f419a2e44e36f9510725a1a69d (diff)
downloadperl-626725768b7b17463e9ec7b92e2da37105036252.tar.gz
regcomp.c: Fix memory leak regression
There was a remaining memory leak in the new inversion lists data structure under threading. This solves it by changing the implementation to use a SVpPV instead of doing our own memory management. Then the already existing code for handling SVs returns the memory when done.
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/proto.h b/proto.h
index 79488978fa..9d47ba5c85 100644
--- a/proto.h
+++ b/proto.h
@@ -6061,12 +6061,6 @@ PERL_STATIC_INLINE UV S_invlist_max(pTHX_ HV* const invlist)
#define PERL_ARGS_ASSERT_INVLIST_MAX \
assert(invlist)
-PERL_STATIC_INLINE void S_invlist_set_array(pTHX_ HV* const invlist, const UV* const array)
- __attribute__nonnull__(pTHX_1)
- __attribute__nonnull__(pTHX_2);
-#define PERL_ARGS_ASSERT_INVLIST_SET_ARRAY \
- assert(invlist); assert(array)
-
PERL_STATIC_INLINE void S_invlist_set_len(pTHX_ HV* const invlist, const UV len)
__attribute__nonnull__(pTHX_1);
#define PERL_ARGS_ASSERT_INVLIST_SET_LEN \