mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-26 20:22:11 +01:00
Merge branch 'gregex-match-info-leak-fix' into 'main'
gregex: Free match info if offset matching recalc failed See merge request GNOME/glib!2827
This commit is contained in:
commit
34e5bb8b43
@ -2241,7 +2241,10 @@ g_regex_match_all_full (const GRegex *regex,
|
||||
info->workspace, info->n_workspace);
|
||||
|
||||
if (!recalc_match_offsets (info, error))
|
||||
return FALSE;
|
||||
{
|
||||
g_match_info_free (info);
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (info->matches == PCRE2_ERROR_DFA_WSSIZE)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user