After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 778396 - memory leak when unref GUPnPAVXMLDoc in xml-util.c
memory leak when unref GUPnPAVXMLDoc in xml-util.c
Status: RESOLVED FIXED
Product: gupnp-av
Classification: Other
Component: General
0.12.x
Other Linux
: Normal normal
: ---
Assigned To: GUPnP Maintainers
GUPnP Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-02-09 14:18 UTC by Thomas Martinez
Modified: 2019-02-22 05:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
a basic patch to fix memory leak (669 bytes, patch)
2017-02-09 14:18 UTC, Thomas Martinez
committed Details | Review

Description Thomas Martinez 2017-02-09 14:18:40 UTC
Created attachment 345321 [details] [review]
a basic patch to fix memory leak

I think there is a memory leak when xml_doc_unref is call (refcount == 1) (last call).
I suggest a basic patch (to be applied on 0.12.0 tag).
I am not an expert with GObject, so may be i am missing something ...
Comment 1 Jens Georg 2017-02-09 17:51:35 UTC
Review of attachment 345321 [details] [review]:

+1. You are right, of course.