Bug 25697 - small memory leak on reload
Summary: small memory leak on reload
Status: RESOLVED FIXED
Alias: None
Product: dbus
Classification: Unclassified
Component: core (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Havoc Pennington
QA Contact: John (J5) Palmieri
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-17 16:23 UTC by Matthias Clasen
Modified: 2009-12-18 11:33 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Matthias Clasen 2009-12-17 16:23:07 UTC
diff -up dbus-1.2.16/bus/bus.c.policy-leak dbus-1.2.16/bus/bus.c
--- dbus-1.2.16/bus/bus.c.policy-leak   2009-12-17 19:18:50.966795963 -0500
+++ dbus-1.2.16/bus/bus.c       2009-12-17 19:17:36.023796405 -0500
@@ -438,6 +438,8 @@ process_config_every_time (BusContext   
   /* 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);
Comment 1 Colin Walters 2009-12-18 11:33:03 UTC
commit 8343c971cdedfda6107b0f4f73210d88f64507c6
Author: Matthias Clasen <mclasen@redhat.com>
Date:   Fri Dec 18 14:29:40 2009 -0500

    Bug 25697 - Fix memory leak in policy reload
    
    Signed-off-by: Colin Walters <walters@verbum.org>


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.