GNOME Bugzilla – Bug 777242
Double free regression
Last modified: 2017-01-16 19:42:30 UTC
Introduced by: 5b024e44077b6738855b6b2e92d913b75fda3444 The g_free() wrapper is not about NULL-checking, it's about clearing the pointer to NULL after g_free().
Could you provide a small test-case?
Created attachment 343508 [details] [review] Add testcase Rico: Hope this helps. It's probably also possible to reproduce this without involving async, but I'm not yet familiar enough with the compiler to come up with something simpler.
commit bbff74e9d9d7c44d95504af1b9b0369d63752cea Author: Ole André Vadla Ravnås <oleavr@gmail.com> Date: Sun Jan 15 19:28:00 2017 +0100 tests: Add testcase for double-free regression https://bugzilla.gnome.org/show_bug.cgi?id=777242 commit 0d3ed86477736bdf12ef32c69fc5050b18a0d1ed Author: Rico Tzschichholz <ricotz@ubuntu.com> Date: Mon Jan 16 15:52:41 2017 +0100 Revert "codegen: g_free is already NULL-safe" This reverts commit 5b024e44077b6738855b6b2e92d913b75fda3444. https://bugzilla.gnome.org/show_bug.cgi?id=777242