Fix several memory and resource leaks in the Samba codebase. Patch will follow.
Created attachment 14426 [details] patch for 4.9
Re-assigning to Karolin for inclusion in 4.9.next.
(In reply to Jeremy Allison from comment #2) Pushed to autobuild-v4-9-test.
Pushed to v4-9-test. Closing out bug report. Thanks!