Running 'smbcontrol winbindd pool-usage' on AIX revealed that the 'mallinfo:arena' field increased heavily with each run while the talloc memmory stated constant. The reason for this is using something like this '%*s', depth, string in talloc_report_printf_helper(). The snprintf replacement code in lib/replace/snprintf.c allocates some extra pr_chunk for the '*' behavior. which leaks.
This bug was referenced in samba master: 76adda9d2fea9f93f4cf97536db5c0be6deeb98c
Created attachment 17640 [details] Patch for v4-17-test
Created attachment 17641 [details] Patch for v4-16-test
Jule, two patches for 4.16 and 4.17 Thanks
Pushed to autobuild-v4-{17,16}-test.
This bug was referenced in samba v4-16-test: 450dd63bdf9d8f48701828c52990d3633e738e82
This bug was referenced in samba v4-17-test: e3207e6c25021bce272645e1b387d4c9da18cc8a
Closing out bug report. Thanks!
This bug was referenced in samba v4-17-stable (Release samba-4.17.4): e3207e6c25021bce272645e1b387d4c9da18cc8a
This bug was referenced in samba v4-16-stable (Release samba-4.16.8): 450dd63bdf9d8f48701828c52990d3633e738e82