mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
Regex leak on error path
Don't leak the GRegex struct when g_regex_new() fails.
This commit is contained in:
parent
82a5f787d6
commit
e8a42bb81c
@ -1199,6 +1199,8 @@ g_regex_new (const gchar *pattern,
|
||||
regex->pattern,
|
||||
errmsg);
|
||||
g_propagate_error (error, tmp_error);
|
||||
|
||||
g_regex_unref (regex);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user