mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 06:56:14 +01:00
Fix potential Null pointer dereference.
if "match" is NULL, it is dereferenced in match_free() (L:457)
This commit is contained in:
parent
1e9060547d
commit
4ade09416b
@ -1247,8 +1247,8 @@ handle_remove_match (_GFreedesktopDBus *object,
|
||||
else
|
||||
_g_freedesktop_dbus_complete_remove_match (object, invocation);
|
||||
}
|
||||
|
||||
match_free (match);
|
||||
if (match)
|
||||
match_free (match);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user