mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-03 16:03:40 +02:00
gregex: Free match info if offset matching recalc failed
It's not probably ever happening in practice, but coverity found it and it's easy enough to fix it. Coverity CID: #1490730
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user