GNOME Bugzilla – Bug 757693
Invalid free in g_local_file_trash()
Last modified: 2015-11-17 17:11:01 UTC
The issue has been introduced with that commit https://git.gnome.org/browse/glib/commit/gio/glocalfile.c?id=8ece2de964c01b3428f16766f199b58f0bc67212 the "topdir" variable was freed in an error block or at the end of the function, the free was moved earlier but the error block one is no needed anymore and leads to a segfault when trying to delete a .trash from a device in nautilus as described on https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/1512826 The following patch should fix the issue
Created attachment 315005 [details] [review] that should fix the issue
*** Bug 757192 has been marked as a duplicate of this bug. ***