GNOME Bugzilla – Bug 413352
Variable being freed twice in a row causes segfault
Last modified: 2007-03-01 18:04:01 UTC
Steps to reproduce: Just execute gnome-display-properties, it will segfault most of the time. Stack trace: Look at this code, from control-center-2.17.92/capplets/display/main.c:670 ... info->was_per_computer = resolution != NULL; g_free (resolution); //__ FIRST gtk_widget_show (per_computer_check); wrapped = wrap_in_label (per_computer_check, _("Options")); gtk_box_pack_start (GTK_BOX (vbox), wrapped, FALSE, FALSE, 0); gtk_widget_show (wrapped); g_free (resolution); //__ SECOND ... As you can see, there is a variable named resolution that is being freed twice, so that causes a segfault. Other information:
Good catch, thanks! 2007-03-01 Jens Granseuer <jensgr@gmx.net> * main.c: (create_dialog): fix double-free reported by Sandino Flores-Moreno. Closes bug #413352.