fix leak in pcrepp copy cons

pull/812/head
Timothy Stack 4 years ago
parent 86d515b4bc
commit 8494aefd50

@ -409,7 +409,9 @@ public:
};
pcrepp(const pcrepp &other)
: p_code(other.p_code), p_pattern(other.p_pattern)
: p_code(other.p_code),
p_pattern(other.p_pattern),
p_code_extra(pcre_free_study)
{
pcre_refcount(this->p_code, 1);
this->study();

Loading…
Cancel
Save