mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
Fix potential Null pointer dereference.
if "match" is NULL, it is dereferenced in match_free() (L:457)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user