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 731304 - g_file_read_link leaks memory
g_file_read_link leaks memory
Status: RESOLVED DUPLICATE of bug 733576
Product: glib
Classification: Platform
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2014-06-06 01:25 UTC by Morten Welinder
Modified: 2017-11-17 14:04 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Morten Welinder 2014-06-06 01:25:06 UTC
The commit below introduced a leak on error in g_file_read_link.
Nothing frees "buffer".

(seperate bug report on the whole commit not working coming up)


commit f16753cfe04006144bdfbd1fb7d3dab20024915b
Author: Matthias Clasen <mclasen@redhat.com>
Date:   Tue Dec 24 23:24:40 2013 -0500

    Unify error reporting in gfileutils.c
    
    Use the set_file_error helper function in more places,
    saving some 50 lines.
Comment 1 Philip Withnall 2017-11-17 14:04:40 UTC
This was fixed in commit 49a5d0f6f2aed99cd78f25655f137f4448e47d92 (bug #733576).

*** This bug has been marked as a duplicate of bug 733576 ***