From 8343c971cdedfda6107b0f4f73210d88f64507c6 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 18 Dec 2009 14:29:40 -0500 Subject: [PATCH] Bug 25697 - Fix memory leak in policy reload Signed-off-by: Colin Walters --- bus/bus.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bus/bus.c b/bus/bus.c index ede6dda..b370f92 100644 --- a/bus/bus.c +++ b/bus/bus.c @@ -433,6 +433,8 @@ process_config_every_time (BusContext *context, /* get our limits and timeout lengths */ bus_config_parser_get_limits (parser, &context->limits); + if (context->policy) + bus_policy_unref (context->policy); context->policy = bus_config_parser_steal_policy (parser); _dbus_assert (context->policy != NULL); -- 2.7.4