mirror of https://github.com/tstack/lnav.git
fix leak in pcrepp copy cons
This commit is contained in:
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…
Reference in New Issue