since 968f72041021ccc0301220833f987dad8e3b9364 there is a double free in smbtree samba built with modern gcc will show with smbtree -N something like WORKGROUP \\LIVEBOX Livebox \\LIVEBOX\USBkk Additional storage \\LIVEBOX\IPC$ IPC Service (Livebox) free(): double free detected in tcache 2 Abandon (core dumped) seems we call poptFreeContext(pc) multiple times
taking it
Created attachment 15886 [details] patch for master
https://gitlab.com/samba-team/samba/-/merge_requests/1255 instead of reverting the orig patch 968f72041021ccc0301220833f987dad8e3b9364 I removed the orig existing poptFreeContext(pc) (after the while) and leave the new poptFreeContext(pc) introduced with 968f72041021ccc0301220833f987dad8e3b9364 at the end of the method (where I think it is more visible)
Created attachment 15887 [details] patch for 4.12 cherry picked from master
Assigning to Karolin for inclusion in 4.12
(In reply to Noel Power from comment #5) Pushed to autobuild-v4-12-test.
(In reply to Karolin Seeger from comment #6) Pushed to v4-12-test. Closing out bug report. Thanks!