Bug 25697 - Fix memory leak in policy reload

Signed-off-by: Colin Walters <walters@verbum.org>
This commit is contained in:
Matthias Clasen 2009-12-18 14:29:40 -05:00 committed by Colin Walters
parent 9b2c196ef3
commit 8343c971cd

View file

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