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 556954 - gtk+/gtk/gtkrecentchooserdefault.c: mismatching allocation and deallocation
gtk+/gtk/gtkrecentchooserdefault.c: mismatching allocation and deallocation
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
unspecified
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2008-10-19 14:43 UTC by Daniel Marjamäki
Modified: 2008-10-24 04:21 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Daniel Marjamäki 2008-10-19 14:43:11 UTC
Please describe the problem:
In the file gtk+/gtk/gtkrecentchooserdefault.c on line 1615 there are mismatching allocation and deallocation for 'msg'. Here's the code:

      msg = strdup (_("Could not remove item"));
      error_message (impl, msg, err->message);
      
      g_free (msg);


Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Matthias Clasen 2008-10-24 04:21:31 UTC
2008-10-24  Matthias Clasen  <mclasen@redhat.com>

        Bug 556954 – gtk+/gtk/gtkrecentchooserdefault.c: mismatching
        allocation and deallocation

        * gtk/gtkrecentchooserdefault.c (remove_selected_from_list): Don't
        free a strdup'ed string by g_free. Pointed out by Daniel Marjamäki