You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
regcomp: ensure the RExC_state freed earlier rather than later
388bf71 (ignoring #23022 for now) ensured that the RExC_state
and its controlled pointers were freed once and only once,
regardless of whether re_op_compile() returned normally or threw
an exception.
Unfortunately that free could happen very later, surviving well beyond
when the regexp was compiled.
Add an ENTER/LEAVE pair to ensure the cleanup is done immediately
on a normal return.
0 commit comments