Summary: | Memleak when GetConnectionCredentials is successful | ||
---|---|---|---|
Product: | dbus | Reporter: | Jacek Bukarewicz <j.bukarewicz> |
Component: | core | Assignee: | D-Bus Maintainers <dbus> |
Status: | RESOLVED FIXED | QA Contact: | D-Bus Maintainers <dbus> |
Severity: | major | ||
Priority: | medium | Keywords: | patch |
Version: | 1.8 | ||
Hardware: | All | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | Proposed fix for memleak in GetConnectionCredentials handler |
Description
Jacek Bukarewicz
2015-06-17 11:53:03 UTC
Comment on attachment 116556 [details] [review] Proposed fix for memleak in GetConnectionCredentials handler Review of attachment 116556 [details] [review]: ----------------------------------------------------------------- The general idea looks right, the actual change not so much. Please use git format-patch instead of git show, it makes it much easier to preserve attribution when applying patches. ::: bus/driver.c @@ +1755,4 @@ > goto oom; > } > > + bus_message_unref (reply); Did you test this? There is no function of that name. There is a dbus_message_unref() whose use here would fix the bug, though :-) Fixed in git for 1.8.20 and 1.9.18 (with function name corrected). Yes, you are right. Sorry for being careless. I tested it on Tizen D-Bus repository with dbus_message_unref and it worked correctly. Then I wrote similar patch in the upstream repo making a typo by the way without testing it again. Thanks for correcting and applying the fix. |
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.