mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-28 10:07:13 +02: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:
@@ -2241,7 +2241,10 @@ g_regex_match_all_full (const GRegex *regex,
|
|||||||
info->workspace, info->n_workspace);
|
info->workspace, info->n_workspace);
|
||||||
|
|
||||||
if (!recalc_match_offsets (info, error))
|
if (!recalc_match_offsets (info, error))
|
||||||
|
{
|
||||||
|
g_match_info_free (info);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
if (info->matches == PCRE2_ERROR_DFA_WSSIZE)
|
if (info->matches == PCRE2_ERROR_DFA_WSSIZE)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user