diff --git a/glib/gregex.c b/glib/gregex.c index 5fc7b16bc..be03f0e09 100644 --- a/glib/gregex.c +++ b/glib/gregex.c @@ -2237,7 +2237,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) {