mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-05 22:48:02 +02:00
Bug 25697 - Fix memory leak in policy reload
Signed-off-by: Colin Walters <walters@verbum.org>
This commit is contained in:
parent
9b2c196ef3
commit
8343c971cd
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue