mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-15 20:25:12 +01:00
gregex: Fix an assignment-after-free error
The match_info is freed just above this line, so this would result in a write to freed memory. Spotted by Leslie Zhai <xiangzhai83@gmail.com>. https://bugzilla.gnome.org/show_bug.cgi?id=777077
This commit is contained in:
parent
88e977266b
commit
2c35acff7b
@ -2294,7 +2294,6 @@ g_regex_split_full (const GRegex *regex,
|
||||
{
|
||||
g_propagate_error (error, tmp_error);
|
||||
g_list_free_full (list, g_free);
|
||||
match_info->pos = -1;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user