From 4ade09416b5e7b6d99883c4dd3b886605fdf043a Mon Sep 17 00:00:00 2001 From: Gaurav Date: Tue, 5 Jun 2018 14:01:47 +0000 Subject: [PATCH] Fix potential Null pointer dereference. if "match" is NULL, it is dereferenced in match_free() (L:457) --- gio/gdbusdaemon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gio/gdbusdaemon.c b/gio/gdbusdaemon.c index 3516183f9..e6b3c1af0 100644 --- a/gio/gdbusdaemon.c +++ b/gio/gdbusdaemon.c @@ -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; }