Bug 237179
Summary: | flags() method on GtkWidget leaks memory | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Daniel Berrangé <berrange> | ||||
Component: | pygobject2 | Assignee: | Matthew Barnes <mbarnes> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | |||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 6 | CC: | mpg | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | pygobject2-2.12.3-2.fc6 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2007-04-20 01:45:01 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Daniel Berrangé
2007-04-19 20:58:46 UTC
Created attachment 153065 [details]
Fix memory leak
Yeah, looks like you're right. According to the Python C API documentation [1], PyDict_GetItem returns a borrowed reference, whereas tp_alloc() returns a new reference (obviously). Fixed in pygobject2-2.12.3-2.fc6 and pygobject2-2.12.3-3.fc7. |