summaryrefslogtreecommitdiff
path: root/bus
diff options
context:
space:
mode:
Diffstat (limited to 'bus')
-rw-r--r--bus/driver.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bus/driver.c b/bus/driver.c
index 8015f28b..9b3e43ee 100644
--- a/bus/driver.c
+++ b/bus/driver.c
@@ -2258,6 +2258,7 @@ bus_driver_handle_become_monitor (DBusConnection *connection,
/* Special case: a zero-length array becomes [""] */
if (n_match_rules == 0)
{
+ dbus_free (match_rules);
match_rules = dbus_malloc (2 * sizeof (char *));
if (match_rules == NULL)