Fix potential Null pointer dereference.

if "match" is NULL, it is dereferenced in match_free() (L:457)
This commit is contained in:
Gaurav 2018-06-05 14:01:47 +00:00
parent 1e9060547d
commit 4ade09416b

View File

@ -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;
}